diff --git a/packages/typespec-powershell/src/utils/modelUtils.ts b/packages/typespec-powershell/src/utils/modelUtils.ts
index a30873cea5..603ed35dd9 100644
--- a/packages/typespec-powershell/src/utils/modelUtils.ts
+++ b/packages/typespec-powershell/src/utils/modelUtils.ts
@@ -1128,10 +1128,8 @@ function getSchemaForEnum(dpgContext: SdkContext, e: Enum) {
function enumMemberType(member: EnumMember | undefined) {
if (typeof member?.value === "number") {
return "number";
- } else if (typeof member?.value === "string") {
- return "string";
}
- return undefined;
+ return "string";
}
/**
* Map TypeSpec intrinsic models to open api definitions
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.DeviceRegistry.csproj b/tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.EdgeZones.csproj
similarity index 89%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.DeviceRegistry.csproj
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.EdgeZones.csproj
index e460081dcf..b9d3e06cc3 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.DeviceRegistry.csproj
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.EdgeZones.csproj
@@ -5,14 +5,14 @@
7.1netstandard2.0Library
- Az.DeviceRegistry.private
+ Az.EdgeZones.privatefalse
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZonestruefalse./bin$(OutputPath)
- Az.DeviceRegistry.nuspec
+ Az.EdgeZones.nuspectrue
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.DeviceRegistry.nuspec b/tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.EdgeZones.nuspec
similarity index 74%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.DeviceRegistry.nuspec
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.EdgeZones.nuspec
index 2bb6e35a77..96442784ed 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.DeviceRegistry.nuspec
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.EdgeZones.nuspec
@@ -1,14 +1,14 @@
- Az.DeviceRegistry
+ Az.EdgeZones0.1.0Microsoft CorporationMicrosoft Corporationtruehttps://aka.ms/azps-licensehttps://github.com/Azure/azure-powershell
- Microsoft Azure PowerShell: DeviceRegistry cmdlets
+ Microsoft Azure PowerShell: EdgeZones cmdletsMicrosoft Corporation. All rights reserved.Azure ResourceManager ARM PSModule Sphere
@@ -17,12 +17,12 @@
-
-
-
+
+
+
-
-
+
+
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.DeviceRegistry.psm1 b/tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.EdgeZones.psm1
similarity index 96%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.DeviceRegistry.psm1
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.EdgeZones.psm1
index e5154e2e7e..fcba7b3e0c 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.DeviceRegistry.psm1
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/Az.EdgeZones.psm1
@@ -40,10 +40,10 @@
Write-Information "Loaded Module '$($accountsModule.Name)'"
# Load the private module dll
- $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.DeviceRegistry.private.dll')
+ $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.EdgeZones.private.dll')
# Get the private module's instance
- $instance = [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module]::Instance
+ $instance = [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module]::Instance
# Ask for the shared functionality table
$VTable = Register-AzModule
@@ -77,7 +77,7 @@
$instance.ProfileName = $VTable.ProfileName
# Load the custom module
- $customModulePath = Join-Path $PSScriptRoot './custom/Az.DeviceRegistry.custom.psm1'
+ $customModulePath = Join-Path $PSScriptRoot './custom/Az.EdgeZones.custom.psm1'
if(Test-Path $customModulePath) {
$null = Import-Module -Name $customModulePath
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/README.md b/tests-upgrade/tests-emitter/EdgeZones.Management/target/README.md
index 7a0e7e392a..4633b06c97 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/README.md
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/README.md
@@ -1,6 +1,6 @@
-# Az.DeviceRegistry
-This directory contains the PowerShell module for the DeviceRegistry service.
+# Az.EdgeZones
+This directory contains the PowerShell module for the EdgeZones service.
---
## Info
@@ -20,5 +20,5 @@ This module was primarily generated via [AutoRest](https://github.com/Azure/auto
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
## Development
-For information on how to develop for `Az.DeviceRegistry`, see [how-to.md](how-to.md).
+For information on how to develop for `Az.EdgeZones`, see [how-to.md](how-to.md).
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/build-module.ps1 b/tests-upgrade/tests-emitter/EdgeZones.Management/target/build-module.ps1
index 3f2363d1d3..a532f5cda8 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/build-module.ps1
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/build-module.ps1
@@ -99,7 +99,7 @@ if(-not $Debugger) {
$null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path (Join-Path $binFolder 'Debug'), (Join-Path $binFolder 'Release')
}
-$dll = Join-Path $PSScriptRoot 'bin\Az.DeviceRegistry.private.dll'
+$dll = Join-Path $PSScriptRoot 'bin\Az.EdgeZones.private.dll'
if(-not (Test-Path $dll)) {
Write-Error "Unable to find output assembly in '$binFolder'."
}
@@ -108,7 +108,7 @@ if(-not (Test-Path $dll)) {
$null = Import-Module -Name $dll
$modulePaths = $dll
-$customPsm1 = Join-Path $PSScriptRoot 'custom\Az.DeviceRegistry.custom.psm1'
+$customPsm1 = Join-Path $PSScriptRoot 'custom\Az.EdgeZones.custom.psm1'
if(Test-Path $customPsm1) {
$modulePaths = @($dll, $customPsm1)
}
@@ -125,9 +125,9 @@ if(Test-Path $internalFolder) {
}
$null = New-Item -ItemType Directory -Force -Path $internalFolder
-$psd1 = Join-Path $PSScriptRoot './Az.DeviceRegistry.psd1'
+$psd1 = Join-Path $PSScriptRoot './Az.EdgeZones.psd1'
$guid = Get-ModuleGuid -Psd1Path $psd1
-$moduleName = 'Az.DeviceRegistry'
+$moduleName = 'Az.EdgeZones'
$examplesFolder = Join-Path $PSScriptRoot 'examples'
$null = New-Item -ItemType Directory -Force -Path $examplesFolder
@@ -147,7 +147,7 @@ if($NoDocs) {
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs -ExamplesFolder $examplesFolder
} else {
Write-Host -ForegroundColor Green 'Creating exports and docs...'
- $moduleDescription = 'Microsoft Azure PowerShell: DeviceRegistry cmdlets'
+ $moduleDescription = 'Microsoft Azure PowerShell: EdgeZones cmdlets'
$docsFolder = Join-Path $PSScriptRoot 'docs'
if(Test-Path $docsFolder) {
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
@@ -158,7 +158,7 @@ if($NoDocs) {
}
Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
-$formatPs1xml = Join-Path $PSScriptRoot './Az.DeviceRegistry.format.ps1xml'
+$formatPs1xml = Join-Path $PSScriptRoot './Az.EdgeZones.format.ps1xml'
Export-FormatPs1xml -FilePath $formatPs1xml
Write-Host -ForegroundColor Green 'Creating psd1...'
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/create-model-cmdlets.ps1 b/tests-upgrade/tests-emitter/EdgeZones.Management/target/create-model-cmdlets.ps1
index 36cff88d46..c8d8aaade0 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/create-model-cmdlets.ps1
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/create-model-cmdlets.ps1
@@ -28,7 +28,7 @@ function CreateModelCmdlet {
if (''.length -gt 0) {
$ModuleName = ''
} else {
- $ModuleName = 'Az.DeviceRegistry'
+ $ModuleName = 'Az.EdgeZones'
}
$CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs
$Content = ''
@@ -86,10 +86,10 @@ function CreateModelCmdlet {
$ObjectType = $ModelName
$ObjectTypeWithNamespace = "${Namespace}.${ObjectType}"
# remove duplicated module name
- if ($ObjectType.StartsWith('DeviceRegistry')) {
+ if ($ObjectType.StartsWith('EdgeZones')) {
$ModulePrefix = ''
} else {
- $ModulePrefix = 'DeviceRegistry'
+ $ModulePrefix = 'EdgeZones'
}
$OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/custom/Az.EdgeZones.custom.psm1 b/tests-upgrade/tests-emitter/EdgeZones.Management/target/custom/Az.EdgeZones.custom.psm1
new file mode 100644
index 0000000000..786a781313
--- /dev/null
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/custom/Az.EdgeZones.custom.psm1
@@ -0,0 +1,17 @@
+# region Generated
+ # Load the private module dll
+ $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.EdgeZones.private.dll')
+
+ # Load the internal module
+ $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.EdgeZones.internal.psm1'
+ if(Test-Path $internalModulePath) {
+ $null = Import-Module -Name $internalModulePath
+ }
+
+ # Export nothing to clear implicit exports
+ Export-ModuleMember
+
+ # Export script cmdlets
+ Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
+ Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias)
+# endregion
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/custom/README.md b/tests-upgrade/tests-emitter/EdgeZones.Management/target/custom/README.md
index e93eb56b8e..53407c4981 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/custom/README.md
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/custom/README.md
@@ -1,5 +1,5 @@
# Custom
-This directory contains custom implementation for non-generated cmdlets for the `Az.DeviceRegistry` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.DeviceRegistry.custom.psm1`. This file should not be modified.
+This directory contains custom implementation for non-generated cmdlets for the `Az.EdgeZones` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.EdgeZones.custom.psm1`. This file should not be modified.
## Info
- Modifiable: yes
@@ -8,11 +8,11 @@ This directory contains custom implementation for non-generated cmdlets for the
- Packaged: yes
## Details
-For `Az.DeviceRegistry` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*.
+For `Az.EdgeZones` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*.
-For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.DeviceRegistry.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder.
+For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.EdgeZones.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder.
-For script cmdlets, these are loaded via the `Az.DeviceRegistry.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build.
+For script cmdlets, these are loaded via the `Az.EdgeZones.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build.
## Purpose
This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder.
@@ -27,15 +27,15 @@ The easiest way currently to start developing custom cmdlets is to copy an exist
- ProxyCredential
- ProxyUseDefaultCredentials
-These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.DeviceRegistry`. For C#, follow the usage seen in the `ProcessRecordAsync` method.
+These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.EdgeZones`. For C#, follow the usage seen in the `ProcessRecordAsync` method.
### Attributes
For processing the cmdlets, we've created some additional attributes:
-- `Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.DescriptionAttribute`
+- `Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.DescriptionAttribute`
- Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
-- `Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.DoNotExportAttribute`
- - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.DeviceRegistry`.
-- `Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.InternalExportAttribute`
- - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.DeviceRegistry`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder.
-- `Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ProfileAttribute`
+- `Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.DoNotExportAttribute`
+ - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.EdgeZones`.
+- `Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.InternalExportAttribute`
+ - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.EdgeZones`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder.
+- `Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ProfileAttribute`
- Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.
\ No newline at end of file
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/docs/README.md b/tests-upgrade/tests-emitter/EdgeZones.Management/target/docs/README.md
index d07b5c07d9..56fb1bce16 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/docs/README.md
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/docs/README.md
@@ -1,5 +1,5 @@
# Docs
-This directory contains the documentation of the cmdlets for the `Az.DeviceRegistry` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder.
+This directory contains the documentation of the cmdlets for the `Az.EdgeZones` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder.
## Info
- Modifiable: no
@@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.DeviceRegis
- Packaged: yes
## Details
-The process of documentation generation loads `Az.DeviceRegistry` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder.
\ No newline at end of file
+The process of documentation generation loads `Az.EdgeZones` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder.
\ No newline at end of file
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/export-surface.ps1 b/tests-upgrade/tests-emitter/EdgeZones.Management/target/export-surface.ps1
index 57306fb6bc..1a9018a964 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/export-surface.ps1
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/export-surface.ps1
@@ -22,13 +22,13 @@ if(-not $NotIsolated) {
return
}
-$dll = Join-Path $PSScriptRoot 'bin\Az.DeviceRegistry.private.dll'
+$dll = Join-Path $PSScriptRoot 'bin\Az.EdgeZones.private.dll'
if(-not (Test-Path $dll)) {
Write-Error "Unable to find output assembly in '$binFolder'."
}
$null = Import-Module -Name $dll
-$moduleName = 'Az.DeviceRegistry'
+$moduleName = 'Az.EdgeZones'
$exportsFolder = Join-Path $PSScriptRoot 'exports'
$resourcesFolder = Join-Path $PSScriptRoot 'resources'
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/exports/README.md b/tests-upgrade/tests-emitter/EdgeZones.Management/target/exports/README.md
index 6208336cd3..f75088eccb 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/exports/README.md
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/exports/README.md
@@ -1,5 +1,5 @@
# Exports
-This directory contains the cmdlets *exported by* `Az.DeviceRegistry`. No other cmdlets in this repository are directly exported. What that means is the `Az.DeviceRegistry` module will run [Export-ModuleMember](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation.
+This directory contains the cmdlets *exported by* `Az.EdgeZones`. No other cmdlets in this repository are directly exported. What that means is the `Az.EdgeZones` module will run [Export-ModuleMember](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation.
## Info
- Modifiable: no
@@ -8,7 +8,7 @@ This directory contains the cmdlets *exported by* `Az.DeviceRegistry`. No other
- Packaged: yes
## Details
-The cmdlets generated here are created every time you run `build-module.ps1`. These cmdlets are a merge of all (excluding `InternalExport`) cmdlets from the private binary (`..\bin\Az.DeviceRegistry.private.dll`) and from the `..\custom\Az.DeviceRegistry.custom.psm1` module. Cmdlets that are *not merged* from those directories are decorated with the `InternalExport` attribute. This happens when you set the cmdlet to **hide** from configuration. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) or the [README.md](..\internal/README.md) in the `..\internal` folder.
+The cmdlets generated here are created every time you run `build-module.ps1`. These cmdlets are a merge of all (excluding `InternalExport`) cmdlets from the private binary (`..\bin\Az.EdgeZones.private.dll`) and from the `..\custom\Az.EdgeZones.custom.psm1` module. Cmdlets that are *not merged* from those directories are decorated with the `InternalExport` attribute. This happens when you set the cmdlet to **hide** from configuration. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) or the [README.md](..\internal/README.md) in the `..\internal` folder.
## Purpose
We generate script cmdlets out of the binary cmdlets and custom cmdlets. The format of script cmdlets are simplistic; thus, easier to generate at build time. Generating the cmdlets is required as to allow merging of generated binary, hand-written binary, and hand-written custom cmdlets. For Azure cmdlets, having script cmdlets simplifies the mechanism for exporting Azure profiles.
@@ -17,4 +17,4 @@ We generate script cmdlets out of the binary cmdlets and custom cmdlets. The for
The cmdlets generated here will flat in the directory (no sub-folders) as long as there are no Azure profiles specified for any cmdlets. Azure profiles (the `Profiles` attribute) is only applied when generating with the `--azure` attribute (or `azure: true` in the configuration). When Azure profiles are applied, the folder structure has a folder per profile. Each profile folder has only those cmdlets that apply to that profile.
## Usage
-When `./Az.DeviceRegistry.psm1` is loaded, it dynamically exports cmdlets here based on the folder structure and on the selected profile. If there are no sub-folders, it exports all cmdlets at the root of this folder. If there are sub-folders, it checks to see the selected profile. If no profile is selected, it exports the cmdlets in the last sub-folder (alphabetically). If a profile is selected, it exports the cmdlets in the sub-folder that matches the profile name. If there is no sub-folder that matches the profile name, it exports no cmdlets and writes a warning message.
\ No newline at end of file
+When `./Az.EdgeZones.psm1` is loaded, it dynamically exports cmdlets here based on the folder structure and on the selected profile. If there are no sub-folders, it exports all cmdlets at the root of this folder. If there are sub-folders, it checks to see the selected profile. If no profile is selected, it exports the cmdlets in the last sub-folder (alphabetically). If a profile is selected, it exports the cmdlets in the sub-folder that matches the profile name. If there is no sub-folder that matches the profile name, it exports no cmdlets and writes a warning message.
\ No newline at end of file
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generate-help.ps1 b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generate-help.ps1
index 31b98804e2..d861c08787 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generate-help.ps1
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generate-help.ps1
@@ -40,14 +40,14 @@ if(Test-Path $docsFolder) {
$null = New-Item -ItemType Directory -Force -Path $docsFolder -ErrorAction SilentlyContinue
$examplesFolder = Join-Path $PSScriptRoot 'examples'
-$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot './Az.DeviceRegistry.psd1')
+$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot './Az.EdgeZones.psd1')
$modulePath = $modulePsd1.FullName
$moduleName = $modulePsd1.BaseName
# Load DLL to use build-time cmdlets
Import-Module -Name $modulePath
-Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.DeviceRegistry.private.dll')
-$instance = [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module]::Instance
+Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.EdgeZones.private.dll')
+$instance = [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module]::Instance
# Module info is shared per profile
$moduleInfo = Get-Module -Name $moduleName
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generate-portal-ux.ps1 b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generate-portal-ux.ps1
index 0cf209a5f6..e67c174c4e 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generate-portal-ux.ps1
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generate-portal-ux.ps1
@@ -25,7 +25,7 @@ if(-not $NotIsolated) {
return
}
-$moduleName = 'Az.DeviceRegistry'
+$moduleName = 'Az.EdgeZones'
$rootModuleName = ''
if ($rootModuleName -eq "")
{
@@ -37,7 +37,7 @@ $modulePath = $modulePsd1.FullName
# Load DLL to use build-time cmdlets
Import-Module -Name $modulePath
Import-Module -Name (Join-Path $PSScriptRoot "./bin/$moduleName.private.dll")
-$instance = [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module]::Instance
+$instance = [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module]::Instance
# Module info is shared per profile
$moduleInfo = Get-Module -Name $moduleName
$parameterSetsInfo = Get-Module -Name "$moduleName.private"
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/Module.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/Module.cs
index 682dc3ff73..5d754ff1eb 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/Module.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/Module.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
using SendAsyncStepDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>;
using PipelineChangeDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>;
using GetParameterDelegate = global::System.Func;
@@ -30,13 +30,13 @@ public partial class Module
private static readonly global::System.Object _initLock = new global::System.Object();
- private static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module _instance;
+ private static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module _instance;
/// the ISendAsync pipeline instance
- private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline _pipeline;
+ private Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.HttpPipeline _pipeline;
/// the ISendAsync pipeline instance (when proxy is enabled)
- private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline _pipelineWithProxy;
+ private Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.HttpPipeline _pipelineWithProxy;
private static readonly global::System.Object _singletonLock = new global::System.Object();
@@ -48,7 +48,7 @@ public partial class Module
public ArgumentCompleterDelegate ArgumentCompleter { get; set; }
/// The instance of the Client API
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.MicrosoftEdgeZones ClientAPI { get; set; }
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.MicrosoftEdgeZones ClientAPI { get; set; }
/// A delegate that gets called for each signalled event
public EventListenerDelegate EventListener { get; set; }
@@ -63,10 +63,10 @@ public partial class Module
public GetTelemetryInfoDelegate GetTelemetryInfo { get; set; }
/// the singleton of this module class
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } }
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } }
/// The Name of this module
- public string Name => @"Az.DeviceRegistry";
+ public string Name => @"Az.EdgeZones";
/// The delegate to call when this module is loaded (supporting a commmon module).
public ModuleLoadPipelineDelegate OnModuleLoad { get; set; }
@@ -78,7 +78,7 @@ public partial class Module
public global::System.String ProfileName { get; set; }
/// The ResourceID for this module (azure arm).
- public string ResourceId => @"Az.DeviceRegistry";
+ public string ResourceId => @"Az.EdgeZones";
/// The delegate to call in WriteObject to sanitize the output object.
public SanitizerDelegate SanitizeOutput { get; set; }
@@ -89,12 +89,12 @@ public partial class Module
/// The from the cmdlet
/// The HttpPipeline for the request
- partial void AfterCreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline pipeline);
+ partial void AfterCreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.HttpPipeline pipeline);
/// The from the cmdlet
/// The HttpPipeline for the request
- partial void BeforeCreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline pipeline);
+ partial void BeforeCreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.HttpPipeline pipeline);
partial void CustomInit();
@@ -104,10 +104,10 @@ public partial class Module
/// the cmdlet's process record correlation id.
/// the cmdlet's parameterset name.
/// a dict for extensible parameters
- /// An instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline for the remote call.
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline CreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string processRecordId, string parameterSetName = null, global::System.Collections.Generic.IDictionary extensibleParameters = null)
+ /// An instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.HttpPipeline for the remote call.
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.HttpPipeline CreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string processRecordId, string parameterSetName = null, global::System.Collections.Generic.IDictionary extensibleParameters = null)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline pipeline = null;
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.HttpPipeline pipeline = null;
BeforeCreatePipeline(invocationInfo, ref pipeline);
pipeline = (pipeline ?? (_useProxy ? _pipelineWithProxy : _pipeline)).Clone();
AfterCreatePipeline(invocationInfo, ref pipeline);
@@ -145,10 +145,10 @@ public void Init()
private Module()
{
// constructor
- ClientAPI = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.MicrosoftEdgeZones();
+ ClientAPI = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.MicrosoftEdgeZones();
_handler.Proxy = _webProxy;
- _pipeline = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient()));
- _pipelineWithProxy = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient(_handler)));
+ _pipeline = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient()));
+ _pipelineWithProxy = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient(_handler)));
}
/// The HTTP Proxy to use.
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/MicrosoftEdgeZones.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/MicrosoftEdgeZones.cs
index f3eee571fc..2c76b861d4 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/MicrosoftEdgeZones.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/MicrosoftEdgeZones.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
///
/// Low-level API implementation for the Microsoft.EdgeZones service.
@@ -17,12 +17,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesGet(string subscriptionId, string extendedZoneName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesGet(string subscriptionId, string extendedZoneName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -38,14 +38,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Method.Get, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
await this.ExtendedZonesGet_Call (request, onOk,onDefault,eventListener,sender);
}
@@ -56,12 +56,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesGetViaIdentity(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.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesGetViaIdentity(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.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -88,14 +88,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Method.Get, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
await this.ExtendedZonesGet_Call (request, onOk,onDefault,eventListener,sender);
}
@@ -103,13 +103,13 @@ public partial class MicrosoftEdgeZones
/// Gets an Azure Extended Zone for a subscription
///
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync pipeline to use to make the request.
///
- /// A that will be complete when handling of the response is completed.
+ /// A
+ /// that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task ExtendedZonesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -136,14 +136,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
// 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.DeviceRegistry.Runtime.Method.Get, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
// make the call
return await this.ExtendedZonesGetWithResult_Call (request, eventListener,sender);
}
@@ -152,13 +152,13 @@ public partial class MicrosoftEdgeZones
/// Gets an Azure Extended Zone for a subscription
/// The ID of the target subscription. The value must be an UUID.
/// The name of the ExtendedZone
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync pipeline to use to make the request.
///
- /// A that will be complete when handling of the response is completed.
+ /// A
+ /// that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task ExtendedZonesGetWithResult(string subscriptionId, string extendedZoneName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesGetWithResult(string subscriptionId, string extendedZoneName, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -174,14 +174,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
// 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.DeviceRegistry.Runtime.Method.Get, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
// make the call
return await this.ExtendedZonesGetWithResult_Call (request, eventListener,sender);
}
@@ -189,13 +189,13 @@ public partial class MicrosoftEdgeZones
/// Actual wire call for method.
/// the prepared HttpRequestMessage to send.
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync pipeline to use to make the request.
///
- /// A that will be complete when handling of the response is completed.
+ /// A
+ /// that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task ExtendedZonesGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task ExtendedZonesGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -203,31 +203,31 @@ public partial class MicrosoftEdgeZones
try
{
var sendTask = sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
_response = await sendTask;
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; }
var _contentType = _response.Content.Headers.ContentType?.MediaType;
switch ( _response.StatusCode )
{
case global::System.Net.HttpStatusCode.OK:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZone.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) );
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZone.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) );
return await _result;
}
default:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) );
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) );
// Error Response : default
var code = (await _result)?.Code;
var message = (await _result)?.Message;
if ((null == code || null == message))
{
// Unrecognized Response. Create an error record based on what we have.
- var ex = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.RestException(_response, await _result);
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.RestException(_response, await _result);
throw ex;
}
else
@@ -240,7 +240,7 @@ public partial class MicrosoftEdgeZones
finally
{
// finally statements
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Finally, request, _response);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Finally, request, _response);
_response?.Dispose();
request?.Dispose();
}
@@ -252,12 +252,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesGet_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.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task ExtendedZonesGet_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.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -265,24 +265,24 @@ public partial class MicrosoftEdgeZones
try
{
var sendTask = sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress, "intentional placeholder", 100); 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.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZone.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZone.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -290,7 +290,7 @@ public partial class MicrosoftEdgeZones
finally
{
// finally statements
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Finally, request, _response);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Finally, request, _response);
_response?.Dispose();
request?.Dispose();
}
@@ -303,11 +303,11 @@ public partial class MicrosoftEdgeZones
///
/// The ID of the target subscription. The value must be an UUID.
/// The name of the ExtendedZone
- /// an instance that will receive events.
+ /// 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 ExtendedZonesGet_Validate(string subscriptionId, string extendedZoneName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task ExtendedZonesGet_Validate(string subscriptionId, string extendedZoneName, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -322,12 +322,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -342,14 +342,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Method.Get, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
await this.ExtendedZonesListBySubscription_Call (request, onOk,onDefault,eventListener,sender);
}
@@ -360,12 +360,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesListBySubscriptionViaIdentity(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.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesListBySubscriptionViaIdentity(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.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -390,14 +390,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Method.Get, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
await this.ExtendedZonesListBySubscription_Call (request, onOk,onDefault,eventListener,sender);
}
@@ -405,13 +405,13 @@ public partial class MicrosoftEdgeZones
/// Lists the Azure Extended Zones available to a subscription
///
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -436,14 +436,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
// 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.DeviceRegistry.Runtime.Method.Get, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
// make the call
return await this.ExtendedZonesListBySubscriptionWithResult_Call (request, eventListener,sender);
}
@@ -451,13 +451,13 @@ public partial class MicrosoftEdgeZones
/// Lists the Azure Extended Zones available to a subscription
/// The ID of the target subscription. The value must be an UUID.
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesListBySubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesListBySubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -472,14 +472,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
// 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.DeviceRegistry.Runtime.Method.Get, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
// make the call
return await this.ExtendedZonesListBySubscriptionWithResult_Call (request, eventListener,sender);
}
@@ -489,13 +489,13 @@ public partial class MicrosoftEdgeZones
/// Actual wire call for method.
///
/// the prepared HttpRequestMessage to send.
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesListBySubscriptionWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task ExtendedZonesListBySubscriptionWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -503,31 +503,31 @@ public partial class MicrosoftEdgeZones
try
{
var sendTask = sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
_response = await sendTask;
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; }
var _contentType = _response.Content.Headers.ContentType?.MediaType;
switch ( _response.StatusCode )
{
case global::System.Net.HttpStatusCode.OK:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZoneListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) );
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZoneListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) );
return await _result;
}
default:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) );
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) );
// Error Response : default
var code = (await _result)?.Code;
var message = (await _result)?.Message;
if ((null == code || null == message))
{
// Unrecognized Response. Create an error record based on what we have.
- var ex = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.RestException(_response, await _result);
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.RestException(_response, await _result);
throw ex;
}
else
@@ -540,7 +540,7 @@ public partial class MicrosoftEdgeZones
finally
{
// finally statements
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Finally, request, _response);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Finally, request, _response);
_response?.Dispose();
request?.Dispose();
}
@@ -552,12 +552,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesListBySubscription_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.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task ExtendedZonesListBySubscription_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.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -565,24 +565,24 @@ public partial class MicrosoftEdgeZones
try
{
var sendTask = sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress, "intentional placeholder", 100); 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.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZoneListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZoneListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -590,7 +590,7 @@ public partial class MicrosoftEdgeZones
finally
{
// finally statements
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Finally, request, _response);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Finally, request, _response);
_response?.Dispose();
request?.Dispose();
}
@@ -602,11 +602,11 @@ public partial class MicrosoftEdgeZones
/// get validation events back.
///
/// The ID of the target subscription. The value must be an UUID.
- /// an instance that will receive events.
+ /// 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 ExtendedZonesListBySubscription_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task ExtendedZonesListBySubscription_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -620,12 +620,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesRegister(string subscriptionId, string extendedZoneName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesRegister(string subscriptionId, string extendedZoneName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -642,14 +642,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Method.Post, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Post, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
await this.ExtendedZonesRegister_Call (request, onOk,onDefault,eventListener,sender);
}
@@ -660,12 +660,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesRegisterViaIdentity(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.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesRegisterViaIdentity(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.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -693,14 +693,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Method.Post, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Post, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
await this.ExtendedZonesRegister_Call (request, onOk,onDefault,eventListener,sender);
}
@@ -708,13 +708,13 @@ public partial class MicrosoftEdgeZones
/// Registers a subscription for an Extended Zone
///
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync pipeline to use to make the request.
///
- /// A that will be complete when handling of the response is completed.
+ /// A
+ /// that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task ExtendedZonesRegisterViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesRegisterViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -742,14 +742,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
// 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.DeviceRegistry.Runtime.Method.Post, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Post, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
// make the call
return await this.ExtendedZonesRegisterWithResult_Call (request, eventListener,sender);
}
@@ -758,13 +758,13 @@ public partial class MicrosoftEdgeZones
/// Registers a subscription for an Extended Zone
/// The ID of the target subscription. The value must be an UUID.
/// The name of the ExtendedZone
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync pipeline to use to make the request.
///
- /// A that will be complete when handling of the response is completed.
+ /// A
+ /// that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task ExtendedZonesRegisterWithResult(string subscriptionId, string extendedZoneName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesRegisterWithResult(string subscriptionId, string extendedZoneName, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -781,14 +781,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
// 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.DeviceRegistry.Runtime.Method.Post, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Post, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
// make the call
return await this.ExtendedZonesRegisterWithResult_Call (request, eventListener,sender);
}
@@ -796,13 +796,13 @@ public partial class MicrosoftEdgeZones
/// Actual wire call for method.
/// the prepared HttpRequestMessage to send.
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync pipeline to use to make the request.
///
- /// A that will be complete when handling of the response is completed.
+ /// A
+ /// that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task ExtendedZonesRegisterWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task ExtendedZonesRegisterWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -810,31 +810,31 @@ public partial class MicrosoftEdgeZones
try
{
var sendTask = sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
_response = await sendTask;
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; }
var _contentType = _response.Content.Headers.ContentType?.MediaType;
switch ( _response.StatusCode )
{
case global::System.Net.HttpStatusCode.OK:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZone.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) );
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZone.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) );
return await _result;
}
default:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) );
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) );
// Error Response : default
var code = (await _result)?.Code;
var message = (await _result)?.Message;
if ((null == code || null == message))
{
// Unrecognized Response. Create an error record based on what we have.
- var ex = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.RestException(_response, await _result);
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.RestException(_response, await _result);
throw ex;
}
else
@@ -847,7 +847,7 @@ public partial class MicrosoftEdgeZones
finally
{
// finally statements
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Finally, request, _response);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Finally, request, _response);
_response?.Dispose();
request?.Dispose();
}
@@ -859,12 +859,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesRegister_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.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task ExtendedZonesRegister_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.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -872,24 +872,24 @@ public partial class MicrosoftEdgeZones
try
{
var sendTask = sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress, "intentional placeholder", 100); 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.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZone.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZone.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -897,7 +897,7 @@ public partial class MicrosoftEdgeZones
finally
{
// finally statements
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Finally, request, _response);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Finally, request, _response);
_response?.Dispose();
request?.Dispose();
}
@@ -910,11 +910,11 @@ public partial class MicrosoftEdgeZones
///
/// The ID of the target subscription. The value must be an UUID.
/// The name of the ExtendedZone
- /// an instance that will receive events.
+ /// 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 ExtendedZonesRegister_Validate(string subscriptionId, string extendedZoneName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task ExtendedZonesRegister_Validate(string subscriptionId, string extendedZoneName, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -930,12 +930,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesUnregister(string subscriptionId, string extendedZoneName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesUnregister(string subscriptionId, string extendedZoneName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -952,14 +952,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Method.Post, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Post, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
await this.ExtendedZonesUnregister_Call (request, onOk,onDefault,eventListener,sender);
}
@@ -970,12 +970,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesUnregisterViaIdentity(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.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesUnregisterViaIdentity(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.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -1003,14 +1003,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Method.Post, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Post, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
await this.ExtendedZonesUnregister_Call (request, onOk,onDefault,eventListener,sender);
}
@@ -1018,13 +1018,13 @@ public partial class MicrosoftEdgeZones
/// Unregisters a subscription for an Extended Zone
///
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync pipeline to use to make the request.
///
- /// A that will be complete when handling of the response is completed.
+ /// A
+ /// that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task ExtendedZonesUnregisterViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesUnregisterViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -1052,14 +1052,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
// 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.DeviceRegistry.Runtime.Method.Post, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Post, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
// make the call
return await this.ExtendedZonesUnregisterWithResult_Call (request, eventListener,sender);
}
@@ -1068,13 +1068,13 @@ public partial class MicrosoftEdgeZones
/// Unregisters a subscription for an Extended Zone
/// The ID of the target subscription. The value must be an UUID.
/// The name of the ExtendedZone
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync pipeline to use to make the request.
///
- /// A that will be complete when handling of the response is completed.
+ /// A
+ /// that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task ExtendedZonesUnregisterWithResult(string subscriptionId, string extendedZoneName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task ExtendedZonesUnregisterWithResult(string subscriptionId, string extendedZoneName, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -1091,14 +1091,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
// 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.DeviceRegistry.Runtime.Method.Post, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Post, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
// make the call
return await this.ExtendedZonesUnregisterWithResult_Call (request, eventListener,sender);
}
@@ -1106,13 +1106,13 @@ public partial class MicrosoftEdgeZones
/// Actual wire call for method.
/// the prepared HttpRequestMessage to send.
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync pipeline to use to make the request.
///
- /// A that will be complete when handling of the response is completed.
+ /// A
+ /// that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task ExtendedZonesUnregisterWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task ExtendedZonesUnregisterWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -1120,31 +1120,31 @@ public partial class MicrosoftEdgeZones
try
{
var sendTask = sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
_response = await sendTask;
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; }
var _contentType = _response.Content.Headers.ContentType?.MediaType;
switch ( _response.StatusCode )
{
case global::System.Net.HttpStatusCode.OK:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZone.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) );
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZone.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) );
return await _result;
}
default:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) );
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) );
// Error Response : default
var code = (await _result)?.Code;
var message = (await _result)?.Message;
if ((null == code || null == message))
{
// Unrecognized Response. Create an error record based on what we have.
- var ex = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.RestException(_response, await _result);
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.RestException(_response, await _result);
throw ex;
}
else
@@ -1157,7 +1157,7 @@ public partial class MicrosoftEdgeZones
finally
{
// finally statements
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Finally, request, _response);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Finally, request, _response);
_response?.Dispose();
request?.Dispose();
}
@@ -1169,12 +1169,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 ExtendedZonesUnregister_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.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task ExtendedZonesUnregister_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.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -1182,24 +1182,24 @@ public partial class MicrosoftEdgeZones
try
{
var sendTask = sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress, "intentional placeholder", 100); 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.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZone.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZone.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -1207,7 +1207,7 @@ public partial class MicrosoftEdgeZones
finally
{
// finally statements
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Finally, request, _response);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Finally, request, _response);
_response?.Dispose();
request?.Dispose();
}
@@ -1220,11 +1220,11 @@ public partial class MicrosoftEdgeZones
///
/// The ID of the target subscription. The value must be an UUID.
/// The name of the ExtendedZone
- /// an instance that will receive events.
+ /// 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 ExtendedZonesUnregister_Validate(string subscriptionId, string extendedZoneName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task ExtendedZonesUnregister_Validate(string subscriptionId, string extendedZoneName, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -1238,12 +1238,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -1256,14 +1256,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Method.Get, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
await this.OperationsList_Call (request, onOk,onDefault,eventListener,sender);
}
@@ -1274,12 +1274,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 OperationsListViaIdentity(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.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task OperationsListViaIdentity(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.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -1301,14 +1301,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Method.Get, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
await this.OperationsList_Call (request, onOk,onDefault,eventListener,sender);
}
@@ -1316,13 +1316,13 @@ public partial class MicrosoftEdgeZones
/// List the operations for the provider
///
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 OperationsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task OperationsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -1344,27 +1344,27 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
// 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.DeviceRegistry.Runtime.Method.Get, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
// make the call
return await this.OperationsListWithResult_Call (request, eventListener,sender);
}
}
/// List the operations for the provider
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 OperationsListWithResult(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task OperationsListWithResult(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-04-01-preview";
// Constant Parameters
@@ -1377,14 +1377,14 @@ public partial class MicrosoftEdgeZones
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
// 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.DeviceRegistry.Runtime.Method.Get, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
// make the call
return await this.OperationsListWithResult_Call (request, eventListener,sender);
}
@@ -1392,13 +1392,13 @@ public partial class MicrosoftEdgeZones
/// Actual wire call for method.
/// the prepared HttpRequestMessage to send.
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 OperationsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task OperationsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -1406,31 +1406,31 @@ public partial class MicrosoftEdgeZones
try
{
var sendTask = sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
_response = await sendTask;
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; }
var _contentType = _response.Content.Headers.ContentType?.MediaType;
switch ( _response.StatusCode )
{
case global::System.Net.HttpStatusCode.OK:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) );
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) );
return await _result;
}
default:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
- var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) );
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) );
// Error Response : default
var code = (await _result)?.Code;
var message = (await _result)?.Message;
if ((null == code || null == message))
{
// Unrecognized Response. Create an error record based on what we have.
- var ex = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.RestException(_response, await _result);
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.RestException(_response, await _result);
throw ex;
}
else
@@ -1443,7 +1443,7 @@ public partial class MicrosoftEdgeZones
finally
{
// finally statements
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Finally, request, _response);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Finally, request, _response);
_response?.Dispose();
request?.Dispose();
}
@@ -1455,12 +1455,12 @@ public partial class MicrosoftEdgeZones
/// 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.DeviceRegistry.Runtime.ISendAsync pipeline to use to make the request.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 OperationsList_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.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task OperationsList_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.EdgeZones.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -1468,24 +1468,24 @@ public partial class MicrosoftEdgeZones
try
{
var sendTask = sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress, "intentional placeholder", 100); 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.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -1493,7 +1493,7 @@ public partial class MicrosoftEdgeZones
finally
{
// finally statements
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Finally, request, _response);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Finally, request, _response);
_response?.Dispose();
request?.Dispose();
}
@@ -1504,11 +1504,11 @@ public partial class MicrosoftEdgeZones
/// Validation method for method. Call this like the actual call, but you will get validation
/// events back.
///
- /// an instance that will receive events.
+ /// 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 OperationsList_Validate(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task OperationsList_Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.PowerShell.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.PowerShell.cs
index e137cb4873..d847d700be 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.PowerShell.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.PowerShell.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
/// Anything
[System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))]
@@ -61,7 +61,7 @@ public partial class Any
partial void OverrideToString(ref string stringResult, 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.
@@ -78,7 +78,7 @@ internal Any(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.
@@ -95,27 +95,27 @@ internal Any(global::System.Management.Automation.PSObject 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.DeviceRegistry.Models.IAny DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new Any(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.DeviceRegistry.Models.IAny DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new Any(content);
}
@@ -125,12 +125,12 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny Dese
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString();
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeAll)?.ToString();
public override string ToString()
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.TypeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.TypeConverter.cs
index d007b17556..412421721c 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.TypeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.TypeConverter.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// A PowerShell PSTypeConverter to support converting to an instance of
@@ -62,7 +62,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
@@ -103,14 +103,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.cs
index d9890d63a6..418a64f2ae 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.cs
@@ -1,14 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
/// Anything
public partial class Any :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAnyInternal
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAnyInternal
{
/// Creates an new instance.
@@ -19,7 +19,7 @@ public Any()
}
/// Anything
public partial interface IAny :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable
{
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.json.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.json.cs
index 6b1c052f64..8c033027f0 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.json.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Any.json.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
/// Anything
public partial class Any
@@ -15,15 +15,15 @@ public partial class Any
///
/// The JsonNode that should be deserialized into this object.
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json);
+ partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container);
+ partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container);
///
/// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
@@ -36,7 +36,7 @@ public partial class Any
/// Determines if the rest of the deserialization should be processed, or if the method should return
/// instantly.
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow);
+ partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json, ref bool returnNow);
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
@@ -49,13 +49,13 @@ public partial class Any
/// 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.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow);
+ partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject into a new instance of .
///
- /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from.
- internal Any(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ /// A Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject instance to deserialize from.
+ internal Any(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -67,27 +67,27 @@ internal Any(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.Json
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny.
///
- /// a to deserialize from.
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny.
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ /// a to deserialize from.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny.
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new Any(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new Any(json) : null;
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
- /// The container to serialize this object into. If the caller
+ /// 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 .
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode)
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode serializationMode)
{
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject();
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject();
bool returnNow = false;
BeforeToJson(ref container, ref returnNow);
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/DeviceRegistryIdentity.PowerShell.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/EdgeZonesIdentity.PowerShell.cs
similarity index 63%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/DeviceRegistryIdentity.PowerShell.cs
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/EdgeZonesIdentity.PowerShell.cs
index 115ff52703..ea0299d9c9 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/DeviceRegistryIdentity.PowerShell.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/EdgeZonesIdentity.PowerShell.cs
@@ -1,12 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
- [System.ComponentModel.TypeConverter(typeof(DeviceRegistryIdentityTypeConverter))]
- public partial class DeviceRegistryIdentity
+ [System.ComponentModel.TypeConverter(typeof(EdgeZonesIdentityTypeConverter))]
+ public partial class EdgeZonesIdentity
{
///
@@ -60,37 +60,37 @@ public partial class DeviceRegistryIdentity
partial void OverrideToString(ref string stringResult, 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.DeviceRegistry.Models.IDeviceRegistryIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
- return new DeviceRegistryIdentity(content);
+ return new EdgeZonesIdentity(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.DeviceRegistry.Models.IDeviceRegistryIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
- return new DeviceRegistryIdentity(content);
+ return new EdgeZonesIdentity(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
- internal DeviceRegistryIdentity(global::System.Collections.IDictionary content)
+ internal EdgeZonesIdentity(global::System.Collections.IDictionary content)
{
bool returnNow = false;
BeforeDeserializeDictionary(content, ref returnNow);
@@ -101,25 +101,25 @@ internal DeviceRegistryIdentity(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("SubscriptionId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentityInternal)this).SubscriptionId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentityInternal)this).SubscriptionId, global::System.Convert.ToString);
}
if (content.Contains("ExtendedZoneName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentityInternal)this).ExtendedZoneName = (string) content.GetValueForProperty("ExtendedZoneName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentityInternal)this).ExtendedZoneName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentityInternal)this).ExtendedZoneName = (string) content.GetValueForProperty("ExtendedZoneName",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentityInternal)this).ExtendedZoneName, global::System.Convert.ToString);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentityInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentityInternal)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.
- internal DeviceRegistryIdentity(global::System.Management.Automation.PSObject content)
+ internal EdgeZonesIdentity(global::System.Management.Automation.PSObject content)
{
bool returnNow = false;
BeforeDeserializePSObject(content, ref returnNow);
@@ -130,30 +130,30 @@ internal DeviceRegistryIdentity(global::System.Management.Automation.PSObject co
// actually deserialize
if (content.Contains("SubscriptionId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentityInternal)this).SubscriptionId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentityInternal)this).SubscriptionId, global::System.Convert.ToString);
}
if (content.Contains("ExtendedZoneName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentityInternal)this).ExtendedZoneName = (string) content.GetValueForProperty("ExtendedZoneName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentityInternal)this).ExtendedZoneName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentityInternal)this).ExtendedZoneName = (string) content.GetValueForProperty("ExtendedZoneName",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentityInternal)this).ExtendedZoneName, global::System.Convert.ToString);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentityInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentityInternal)this).Id, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
///
- /// Creates a new instance of , deserializing the content from a json string.
+ /// Creates a new instance of , deserializing the content from a json string.
///
/// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString();
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeAll)?.ToString();
public override string ToString()
{
@@ -167,8 +167,8 @@ public override string ToString()
return ToJsonString();
}
}
- [System.ComponentModel.TypeConverter(typeof(DeviceRegistryIdentityTypeConverter))]
- public partial interface IDeviceRegistryIdentity
+ [System.ComponentModel.TypeConverter(typeof(EdgeZonesIdentityTypeConverter))]
+ public partial interface IEdgeZonesIdentity
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/DeviceRegistryIdentity.TypeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/EdgeZonesIdentity.TypeConverter.cs
similarity index 78%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/DeviceRegistryIdentity.TypeConverter.cs
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/EdgeZonesIdentity.TypeConverter.cs
index 5838cab876..eeea113818 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/DeviceRegistryIdentity.TypeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/EdgeZonesIdentity.TypeConverter.cs
@@ -1,14 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
- /// A PowerShell PSTypeConverter to support converting to an instance of
+ /// A PowerShell PSTypeConverter to support converting to an instance of
///
- public partial class DeviceRegistryIdentityTypeConverter : global::System.Management.Automation.PSTypeConverter
+ public partial class EdgeZonesIdentityTypeConverter : global::System.Management.Automation.PSTypeConverter
{
///
@@ -24,13 +24,13 @@ public partial class DeviceRegistryIdentityTypeConverter : global::System.Manage
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
+ /// Determines if the converter can convert the parameter to the
/// type.
///
- /// the instance to check if it can be converted to the the instance to check if it can be converted to the type.
///
- /// true if the instance could be converted to a type, otherwise false
+ /// true if the instance could be converted to a type, otherwise false
///
public static bool CanConvertFrom(dynamic sourceValue)
{
@@ -68,7 +68,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
@@ -98,18 +98,18 @@ public static bool CanConvertFrom(dynamic sourceValue)
/// 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.
+ /// 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
+ /// Converts the parameter into an instance of
///
- /// the value to convert into an instance of .
+ /// the value to convert into an instance of .
///
- /// an instance of , or null if there is no suitable conversion.
+ /// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentity ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
@@ -119,15 +119,15 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRe
// support direct string to id type conversion.
if (type == typeof(global::System.String))
{
- return new DeviceRegistryIdentity { Id = sourceValue };
+ return new EdgeZonesIdentity { Id = sourceValue };
}
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentity).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity).IsAssignableFrom(type))
{
return sourceValue;
}
try
{
- return DeviceRegistryIdentity.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ return EdgeZonesIdentity.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
}
catch
{
@@ -135,11 +135,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRe
}
if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
{
- return DeviceRegistryIdentity.DeserializeFromPSObject(sourceValue);
+ return EdgeZonesIdentity.DeserializeFromPSObject(sourceValue);
}
if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
{
- return DeviceRegistryIdentity.DeserializeFromDictionary(sourceValue);
+ return EdgeZonesIdentity.DeserializeFromDictionary(sourceValue);
}
return null;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/DeviceRegistryIdentity.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/EdgeZonesIdentity.cs
similarity index 66%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/DeviceRegistryIdentity.cs
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/EdgeZonesIdentity.cs
index ddb4d32821..a36c20bef0 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/DeviceRegistryIdentity.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/EdgeZonesIdentity.cs
@@ -1,47 +1,47 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
- public partial class DeviceRegistryIdentity :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentity,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentityInternal
+ public partial class EdgeZonesIdentity :
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentityInternal
{
/// Backing field for property.
private string _extendedZoneName;
/// The name of the ExtendedZone
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string ExtendedZoneName { get => this._extendedZoneName; set => this._extendedZoneName = value; }
/// Backing field for property.
private string _id;
/// Resource identity path
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Id { get => this._id; set => this._id = value; }
/// Backing field for property.
private string _subscriptionId;
/// The ID of the target subscription. The value must be an UUID.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; }
- /// Creates an new instance.
- public DeviceRegistryIdentity()
+ /// Creates an new instance.
+ public EdgeZonesIdentity()
{
}
}
- public partial interface IDeviceRegistryIdentity :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable
+ public partial interface IEdgeZonesIdentity :
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable
{
/// The name of the ExtendedZone
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = false,
Read = true,
@@ -52,7 +52,7 @@ public partial interface IDeviceRegistryIdentity :
PossibleTypes = new [] { typeof(string) })]
string ExtendedZoneName { get; set; }
/// Resource identity path
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = false,
Read = true,
@@ -63,7 +63,7 @@ public partial interface IDeviceRegistryIdentity :
PossibleTypes = new [] { typeof(string) })]
string Id { get; set; }
/// The ID of the target subscription. The value must be an UUID.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = false,
Read = true,
@@ -75,7 +75,7 @@ public partial interface IDeviceRegistryIdentity :
string SubscriptionId { get; set; }
}
- internal partial interface IDeviceRegistryIdentityInternal
+ internal partial interface IEdgeZonesIdentityInternal
{
/// The name of the ExtendedZone
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/DeviceRegistryIdentity.json.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/EdgeZonesIdentity.json.cs
similarity index 55%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/DeviceRegistryIdentity.json.cs
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/EdgeZonesIdentity.json.cs
index 94463ea293..e718fdbde8 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/DeviceRegistryIdentity.json.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/EdgeZonesIdentity.json.cs
@@ -1,11 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
- public partial class DeviceRegistryIdentity
+ public partial class EdgeZonesIdentity
{
///
@@ -14,15 +14,15 @@ public partial class DeviceRegistryIdentity
///
/// The JsonNode that should be deserialized into this object.
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json);
+ partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container);
+ partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container);
///
/// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
@@ -35,7 +35,7 @@ public partial class DeviceRegistryIdentity
/// Determines if the rest of the deserialization should be processed, or if the method should return
/// instantly.
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow);
+ partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json, ref bool returnNow);
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
@@ -48,13 +48,13 @@ public partial class DeviceRegistryIdentity
/// 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.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow);
+ partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject into a new instance of .
///
- /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from.
- internal DeviceRegistryIdentity(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ /// A Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject instance to deserialize from.
+ internal EdgeZonesIdentity(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -62,36 +62,36 @@ internal DeviceRegistryIdentity(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistr
{
return;
}
- {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)_subscriptionId;}
- {_extendedZoneName = If( json?.PropertyT("extendedZoneName"), out var __jsonExtendedZoneName) ? (string)__jsonExtendedZoneName : (string)_extendedZoneName;}
- {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;}
+ {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)_subscriptionId;}
+ {_extendedZoneName = If( json?.PropertyT("extendedZoneName"), out var __jsonExtendedZoneName) ? (string)__jsonExtendedZoneName : (string)_extendedZoneName;}
+ {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentity.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity.
///
- /// a to deserialize from.
+ /// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentity.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new DeviceRegistryIdentity(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new EdgeZonesIdentity(json) : null;
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
- /// The container to serialize this object into. If the caller
+ /// 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 .
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode)
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode serializationMode)
{
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject();
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject();
bool returnNow = false;
BeforeToJson(ref container, ref returnNow);
@@ -99,9 +99,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T
{
return container;
}
- AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add );
- AddIf( null != (((object)this._extendedZoneName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._extendedZoneName.ToString()) : null, "extendedZoneName" ,container.Add );
- AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
+ AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add );
+ AddIf( null != (((object)this._extendedZoneName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._extendedZoneName.ToString()) : null, "extendedZoneName" ,container.Add );
+ AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs
index b1cab026e6..082523d719 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
/// The resource management error additional info.
[System.ComponentModel.TypeConverter(typeof(ErrorAdditionalInfoTypeConverter))]
@@ -61,33 +61,33 @@ public partial class ErrorAdditionalInfo
partial void OverrideToString(ref string stringResult, 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.DeviceRegistry.Models.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ErrorAdditionalInfo(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ErrorAdditionalInfo(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -102,17 +102,17 @@ internal ErrorAdditionalInfo(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("Info"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.AnyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.
@@ -127,11 +127,11 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte
// actually deserialize
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("Info"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.AnyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.AnyTypeConverter.ConvertFrom);
}
AfterDeserializePSObject(content);
}
@@ -141,12 +141,12 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString();
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeAll)?.ToString();
public override string ToString()
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs
index bebc0e8430..ed70078fb3 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// A PowerShell PSTypeConverter to support converting to an instance of
@@ -63,7 +63,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
@@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfo).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfo).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.cs
index 7ba96eaeea..0dfc8f3384 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.cs
@@ -1,34 +1,34 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
/// The resource management error additional info.
public partial class ErrorAdditionalInfo :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfo,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfoInternal
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfo,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfoInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny _info;
+ private Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny _info;
/// The additional info.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.Any()); }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.Any()); }
/// Internal Acessors for Info
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.Any()); set { {_info = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.Any()); set { {_info = value;} } }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } }
/// Backing field for property.
private string _type;
/// The additional info type.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Type { get => this._type; }
/// Creates an new instance.
@@ -39,10 +39,10 @@ public ErrorAdditionalInfo()
}
/// The resource management error additional info.
public partial interface IErrorAdditionalInfo :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable
{
/// The additional info.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -50,10 +50,10 @@ public partial interface IErrorAdditionalInfo :
Update = false,
Description = @"The additional info.",
SerializedName = @"info",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny) })]
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny Info { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny) })]
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny Info { get; }
/// The additional info type.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -70,7 +70,7 @@ internal partial interface IErrorAdditionalInfoInternal
{
/// The additional info.
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAny Info { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IAny Info { get; set; }
/// The additional info type.
string Type { get; set; }
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.json.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.json.cs
index acd5f15470..461ad1675b 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.json.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorAdditionalInfo.json.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
/// The resource management error additional info.
public partial class ErrorAdditionalInfo
@@ -15,15 +15,15 @@ public partial class ErrorAdditionalInfo
///
/// The JsonNode that should be deserialized into this object.
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json);
+ partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container);
+ partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container);
///
/// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
@@ -36,7 +36,7 @@ public partial class ErrorAdditionalInfo
/// Determines if the rest of the deserialization should be processed, or if the method should return
/// instantly.
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow);
+ partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json, ref bool returnNow);
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
@@ -49,13 +49,13 @@ public partial class ErrorAdditionalInfo
/// 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.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow);
+ partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject into a new instance of .
///
- /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from.
- internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ /// A Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject instance to deserialize from.
+ internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -63,35 +63,35 @@ internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.R
{
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.DeviceRegistry.Models.Any.FromJson(__jsonInfo) : _info;}
+ {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;}
+ {_info = If( json?.PropertyT("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.Any.FromJson(__jsonInfo) : _info;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfo.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfo.
///
- /// a to deserialize from.
+ /// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfo.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfo.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo(json) : null;
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
- /// The container to serialize this object into. If the caller
+ /// 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 .
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode)
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode serializationMode)
{
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject();
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject();
bool returnNow = false;
BeforeToJson(ref container, ref returnNow);
@@ -99,13 +99,13 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add );
+ AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != this._info ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) this._info.ToJson(null,serializationMode) : null, "info" ,container.Add );
+ AddIf( null != this._info ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) this._info.ToJson(null,serializationMode) : null, "info" ,container.Add );
}
AfterToJson(ref container);
return container;
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.PowerShell.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.PowerShell.cs
index e6e2b99240..71fa600203 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.PowerShell.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.PowerShell.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
/// The error detail.
[System.ComponentModel.TypeConverter(typeof(ErrorDetailTypeConverter))]
@@ -61,33 +61,33 @@ public partial class ErrorDetail
partial void OverrideToString(ref string stringResult, 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.DeviceRegistry.Models.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ErrorDetail(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ErrorDetail(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -102,29 +102,29 @@ internal ErrorDetail(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Target, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorDetailTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorDetailTypeConverter.ConvertFrom));
}
if (content.Contains("AdditionalInfo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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.
@@ -139,23 +139,23 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Target, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorDetailTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorDetailTypeConverter.ConvertFrom));
}
if (content.Contains("AdditionalInfo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
}
AfterDeserializePSObject(content);
}
@@ -165,12 +165,12 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content)
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString();
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeAll)?.ToString();
public override string ToString()
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.TypeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.TypeConverter.cs
index 9a82efb628..644fd8e0c4 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.TypeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.TypeConverter.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// A PowerShell PSTypeConverter to support converting to an instance of
@@ -63,7 +63,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
@@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.cs
index 9a90f6f634..5dc136e7ad 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.cs
@@ -1,64 +1,64 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
/// The error detail.
public partial class ErrorDetail :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal
{
/// Backing field for property.
- private System.Collections.Generic.List _additionalInfo;
+ private System.Collections.Generic.List _additionalInfo;
/// The error additional info.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
- public System.Collections.Generic.List AdditionalInfo { get => this._additionalInfo; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
+ public System.Collections.Generic.List AdditionalInfo { get => this._additionalInfo; }
/// Backing field for property.
private string _code;
/// The error code.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Code { get => this._code; }
/// Backing field for property.
- private System.Collections.Generic.List _detail;
+ private System.Collections.Generic.List _detail;
/// The error details.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
- public System.Collections.Generic.List Detail { get => this._detail; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
+ public System.Collections.Generic.List Detail { get => this._detail; }
/// Backing field for property.
private string _message;
/// The error message.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Message { get => this._message; }
/// Internal Acessors for AdditionalInfo
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } }
/// Internal Acessors for Detail
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } }
/// Backing field for property.
private string _target;
/// The error target.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Target { get => this._target; }
/// Creates an new instance.
@@ -69,10 +69,10 @@ public ErrorDetail()
}
/// The error detail.
public partial interface IErrorDetail :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable
{
/// The error additional info.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -80,10 +80,10 @@ public partial interface IErrorDetail :
Update = false,
Description = @"The error additional info.",
SerializedName = @"additionalInfo",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfo) })]
- System.Collections.Generic.List AdditionalInfo { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfo) })]
+ System.Collections.Generic.List AdditionalInfo { get; }
/// The error code.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -94,7 +94,7 @@ public partial interface IErrorDetail :
PossibleTypes = new [] { typeof(string) })]
string Code { get; }
/// The error details.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -102,10 +102,10 @@ public partial interface IErrorDetail :
Update = false,
Description = @"The error details.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail) })]
- System.Collections.Generic.List Detail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail) })]
+ System.Collections.Generic.List Detail { get; }
/// The error message.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -116,7 +116,7 @@ public partial interface IErrorDetail :
PossibleTypes = new [] { typeof(string) })]
string Message { get; }
/// The error target.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -133,11 +133,11 @@ internal partial interface IErrorDetailInternal
{
/// The error additional info.
- System.Collections.Generic.List AdditionalInfo { get; set; }
+ System.Collections.Generic.List AdditionalInfo { get; set; }
/// The error code.
string Code { get; set; }
/// The error details.
- System.Collections.Generic.List Detail { get; set; }
+ System.Collections.Generic.List Detail { get; set; }
/// The error message.
string Message { get; set; }
/// The error target.
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.json.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.json.cs
index 886020ab60..b5e344ffa4 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.json.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorDetail.json.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
/// The error detail.
public partial class ErrorDetail
@@ -15,15 +15,15 @@ public partial class ErrorDetail
///
/// The JsonNode that should be deserialized into this object.
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json);
+ partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container);
+ partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container);
///
/// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
@@ -36,7 +36,7 @@ public partial class ErrorDetail
/// Determines if the rest of the deserialization should be processed, or if the method should return
/// instantly.
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow);
+ partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json, ref bool returnNow);
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
@@ -49,13 +49,13 @@ public partial class ErrorDetail
/// 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.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow);
+ partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject into a new instance of .
///
- /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from.
- internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ /// A Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject instance to deserialize from.
+ internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -63,38 +63,38 @@ internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.J
{
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.DeviceRegistry.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorDetail.FromJson(__u) )) ))() : null : _detail;}
- {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : _additionalInfo;}
+ {_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.EdgeZones.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorDetail.FromJson(__u) )) ))() : null : _detail;}
+ {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : _additionalInfo;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail.
///
- /// a to deserialize from.
+ /// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new ErrorDetail(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new ErrorDetail(json) : null;
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
- /// The container to serialize this object into. If the caller
+ /// 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 .
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode)
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode serializationMode)
{
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject();
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject();
bool returnNow = false;
BeforeToJson(ref container, ref returnNow);
@@ -102,23 +102,23 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add );
+ AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add );
+ AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add );
+ AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
if (null != this._detail)
{
- var __w = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray();
+ var __w = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.XNodeArray();
foreach( var __x in this._detail )
{
AddIf(__x?.ToJson(null, serializationMode) ,__w.Add);
@@ -126,11 +126,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T
container.Add("details",__w);
}
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
if (null != this._additionalInfo)
{
- var __r = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray();
+ var __r = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.XNodeArray();
foreach( var __s in this._additionalInfo )
{
AddIf(__s?.ToJson(null, serializationMode) ,__r.Add);
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.PowerShell.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.PowerShell.cs
index 35490b4333..4f86780cc1 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.PowerShell.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.PowerShell.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// Common error response for all Azure Resource Manager APIs to return error details for failed operations.
@@ -63,33 +63,33 @@ public partial class ErrorResponse
partial void OverrideToString(ref string stringResult, 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.DeviceRegistry.Models.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ErrorResponse(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ErrorResponse(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -104,33 +104,33 @@ internal ErrorResponse(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Error"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorDetailTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorDetailTypeConverter.ConvertFrom);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorDetailTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorDetailTypeConverter.ConvertFrom));
}
if (content.Contains("AdditionalInfo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
}
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Target, 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,27 +145,27 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Error"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorDetailTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorDetailTypeConverter.ConvertFrom);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorDetailTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorDetailTypeConverter.ConvertFrom));
}
if (content.Contains("AdditionalInfo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
}
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal)this).Target, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -175,12 +175,12 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content)
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString();
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeAll)?.ToString();
public override string ToString()
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.TypeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.TypeConverter.cs
index b465b1fdee..327ac92ba5 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.TypeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.TypeConverter.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// A PowerShell PSTypeConverter to support converting to an instance of
@@ -63,7 +63,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
@@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponse ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponse).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.cs
index 0b1651bdb7..c7a3548434 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.cs
@@ -1,62 +1,62 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
///
/// Common error response for all Azure Resource Manager APIs to return error details for failed operations.
///
public partial class ErrorResponse :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponse,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal
{
/// The error additional info.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public System.Collections.Generic.List AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).AdditionalInfo; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public System.Collections.Generic.List AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).AdditionalInfo; }
/// The error code.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).Code; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Code; }
/// The error details.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public System.Collections.Generic.List Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).Detail; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public System.Collections.Generic.List Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Detail; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail _error;
+ private Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail _error;
/// The error object.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorDetail()); set => this._error = value; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorDetail()); set => this._error = value; }
/// The error message.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).Message; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Message; }
/// Internal Acessors for AdditionalInfo
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).AdditionalInfo = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).AdditionalInfo = value; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Code = value; }
/// Internal Acessors for Detail
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).Detail = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Detail = value; }
/// Internal Acessors for Error
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorDetail()); set { {_error = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorDetail()); set { {_error = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Message = value; }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).Target = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Target = value; }
/// The error target.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetailInternal)Error).Target; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Target; }
/// Creates an new instance.
public ErrorResponse()
@@ -66,10 +66,10 @@ public ErrorResponse()
}
/// Common error response for all Azure Resource Manager APIs to return error details for failed operations.
public partial interface IErrorResponse :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable
{
/// The error additional info.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -77,10 +77,10 @@ public partial interface IErrorResponse :
Update = false,
Description = @"The error additional info.",
SerializedName = @"additionalInfo",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorAdditionalInfo) })]
- System.Collections.Generic.List AdditionalInfo { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorAdditionalInfo) })]
+ System.Collections.Generic.List AdditionalInfo { get; }
/// The error code.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -91,7 +91,7 @@ public partial interface IErrorResponse :
PossibleTypes = new [] { typeof(string) })]
string Code { get; }
/// The error details.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -99,10 +99,10 @@ public partial interface IErrorResponse :
Update = false,
Description = @"The error details.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail) })]
- System.Collections.Generic.List Detail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail) })]
+ System.Collections.Generic.List Detail { get; }
/// The error message.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -113,7 +113,7 @@ public partial interface IErrorResponse :
PossibleTypes = new [] { typeof(string) })]
string Message { get; }
/// The error target.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -130,13 +130,13 @@ internal partial interface IErrorResponseInternal
{
/// The error additional info.
- System.Collections.Generic.List AdditionalInfo { get; set; }
+ System.Collections.Generic.List AdditionalInfo { get; set; }
/// The error code.
string Code { get; set; }
/// The error details.
- System.Collections.Generic.List Detail { get; set; }
+ System.Collections.Generic.List Detail { get; set; }
/// The error object.
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetail Error { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail Error { get; set; }
/// The error message.
string Message { get; set; }
/// The error target.
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.json.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.json.cs
index ab51d3bf81..7928ca3bcf 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.json.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ErrorResponse.json.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
///
/// Common error response for all Azure Resource Manager APIs to return error details for failed operations.
@@ -17,15 +17,15 @@ public partial class ErrorResponse
///
/// The JsonNode that should be deserialized into this object.
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json);
+ partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container);
+ partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container);
///
/// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
@@ -38,7 +38,7 @@ public partial class ErrorResponse
/// Determines if the rest of the deserialization should be processed, or if the method should return
/// instantly.
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow);
+ partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json, ref bool returnNow);
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
@@ -51,13 +51,13 @@ public partial class ErrorResponse
/// 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.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow);
+ partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject into a new instance of .
///
- /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from.
- internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ /// A Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject instance to deserialize from.
+ internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -65,34 +65,34 @@ internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime
{
return;
}
- {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ErrorDetail.FromJson(__jsonError) : _error;}
+ {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorDetail.FromJson(__jsonError) : _error;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponse.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse.
///
- /// a to deserialize from.
+ /// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponse.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null;
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
- /// The container to serialize this object into. If the caller
+ /// 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 .
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode)
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode serializationMode)
{
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject();
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject();
bool returnNow = false;
BeforeToJson(ref container, ref returnNow);
@@ -100,7 +100,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T
{
return container;
}
- AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add );
+ AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.PowerShell.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.PowerShell.cs
index 0189586abf..2fc85658f4 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.PowerShell.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.PowerShell.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// Resource that represents an Azure Extended Zone available to a subscription for registering and unregistering.
@@ -63,33 +63,33 @@ public partial class ExtendedZone
partial void OverrideToString(ref string stringResult, 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.DeviceRegistry.Models.IExtendedZone DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ExtendedZone(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.DeviceRegistry.Models.IExtendedZone DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ExtendedZone(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -104,97 +104,97 @@ internal ExtendedZone(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Property"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZonePropertiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZonePropertiesTypeConverter.ConvertFrom);
}
if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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.DeviceRegistry.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.SystemDataTypeConverter.ConvertFrom);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).ProvisioningState, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).ProvisioningState, global::System.Convert.ToString);
}
if (content.Contains("RegistrationState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegistrationState = (string) content.GetValueForProperty("RegistrationState",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegistrationState, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegistrationState = (string) content.GetValueForProperty("RegistrationState",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegistrationState, global::System.Convert.ToString);
}
if (content.Contains("DisplayName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).DisplayName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).DisplayName, global::System.Convert.ToString);
}
if (content.Contains("RegionalDisplayName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegionalDisplayName = (string) content.GetValueForProperty("RegionalDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegionalDisplayName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegionalDisplayName = (string) content.GetValueForProperty("RegionalDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegionalDisplayName, global::System.Convert.ToString);
}
if (content.Contains("RegionType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegionType = (string) content.GetValueForProperty("RegionType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegionType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegionType = (string) content.GetValueForProperty("RegionType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegionType, global::System.Convert.ToString);
}
if (content.Contains("RegionCategory"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegionCategory = (string) content.GetValueForProperty("RegionCategory",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegionCategory, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegionCategory = (string) content.GetValueForProperty("RegionCategory",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegionCategory, global::System.Convert.ToString);
}
if (content.Contains("Geography"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Geography = (string) content.GetValueForProperty("Geography",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Geography, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Geography = (string) content.GetValueForProperty("Geography",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Geography, global::System.Convert.ToString);
}
if (content.Contains("GeographyGroup"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).GeographyGroup = (string) content.GetValueForProperty("GeographyGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).GeographyGroup, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).GeographyGroup = (string) content.GetValueForProperty("GeographyGroup",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).GeographyGroup, global::System.Convert.ToString);
}
if (content.Contains("Longitude"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Longitude = (string) content.GetValueForProperty("Longitude",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Longitude, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Longitude = (string) content.GetValueForProperty("Longitude",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Longitude, global::System.Convert.ToString);
}
if (content.Contains("Latitude"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Latitude = (string) content.GetValueForProperty("Latitude",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Latitude, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Latitude = (string) content.GetValueForProperty("Latitude",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Latitude, global::System.Convert.ToString);
}
if (content.Contains("HomeLocation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).HomeLocation = (string) content.GetValueForProperty("HomeLocation",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).HomeLocation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).HomeLocation = (string) content.GetValueForProperty("HomeLocation",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).HomeLocation, 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.
@@ -209,91 +209,91 @@ internal ExtendedZone(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Property"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZonePropertiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZonePropertiesTypeConverter.ConvertFrom);
}
if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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.DeviceRegistry.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.SystemDataTypeConverter.ConvertFrom);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).ProvisioningState, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).ProvisioningState, global::System.Convert.ToString);
}
if (content.Contains("RegistrationState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegistrationState = (string) content.GetValueForProperty("RegistrationState",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegistrationState, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegistrationState = (string) content.GetValueForProperty("RegistrationState",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegistrationState, global::System.Convert.ToString);
}
if (content.Contains("DisplayName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).DisplayName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).DisplayName, global::System.Convert.ToString);
}
if (content.Contains("RegionalDisplayName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegionalDisplayName = (string) content.GetValueForProperty("RegionalDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegionalDisplayName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegionalDisplayName = (string) content.GetValueForProperty("RegionalDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegionalDisplayName, global::System.Convert.ToString);
}
if (content.Contains("RegionType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegionType = (string) content.GetValueForProperty("RegionType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegionType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegionType = (string) content.GetValueForProperty("RegionType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegionType, global::System.Convert.ToString);
}
if (content.Contains("RegionCategory"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegionCategory = (string) content.GetValueForProperty("RegionCategory",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).RegionCategory, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegionCategory = (string) content.GetValueForProperty("RegionCategory",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).RegionCategory, global::System.Convert.ToString);
}
if (content.Contains("Geography"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Geography = (string) content.GetValueForProperty("Geography",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Geography, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Geography = (string) content.GetValueForProperty("Geography",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Geography, global::System.Convert.ToString);
}
if (content.Contains("GeographyGroup"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).GeographyGroup = (string) content.GetValueForProperty("GeographyGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).GeographyGroup, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).GeographyGroup = (string) content.GetValueForProperty("GeographyGroup",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).GeographyGroup, global::System.Convert.ToString);
}
if (content.Contains("Longitude"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Longitude = (string) content.GetValueForProperty("Longitude",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Longitude, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Longitude = (string) content.GetValueForProperty("Longitude",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Longitude, global::System.Convert.ToString);
}
if (content.Contains("Latitude"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Latitude = (string) content.GetValueForProperty("Latitude",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).Latitude, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Latitude = (string) content.GetValueForProperty("Latitude",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).Latitude, global::System.Convert.ToString);
}
if (content.Contains("HomeLocation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).HomeLocation = (string) content.GetValueForProperty("HomeLocation",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal)this).HomeLocation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).HomeLocation = (string) content.GetValueForProperty("HomeLocation",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal)this).HomeLocation, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -303,12 +303,12 @@ internal ExtendedZone(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.DeviceRegistry.Models.IExtendedZone FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString();
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeAll)?.ToString();
public override string ToString()
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.TypeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.TypeConverter.cs
index 47c07296a7..5e877b8bdc 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.TypeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.TypeConverter.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// A PowerShell PSTypeConverter to support converting to an instance of
@@ -63,7 +63,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
@@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.cs
index ea45a8cb25..d2bf178f01 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.cs
@@ -1,174 +1,173 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
///
/// Resource that represents an Azure Extended Zone available to a subscription for registering and unregistering.
///
public partial class ExtendedZone :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IValidates
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IValidates
{
///
- /// Backing field for Inherited model
+ /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ProxyResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ProxyResource();
/// Display name of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).DisplayName; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).DisplayName; }
/// Geography of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string Geography { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).Geography; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string Geography { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Geography; }
/// The Geography Group of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string GeographyGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).GeographyGroup; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string GeographyGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).GeographyGroup; }
/// The Home Location of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string HomeLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).HomeLocation; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string HomeLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).HomeLocation; }
///
/// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).Id; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Id; }
/// The Latitude of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string Latitude { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).Latitude; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string Latitude { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Latitude; }
/// The Longitude of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string Longitude { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).Longitude; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string Longitude { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Longitude; }
/// Internal Acessors for DisplayName
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).DisplayName = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).DisplayName = value; }
/// Internal Acessors for Geography
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal.Geography { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).Geography; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).Geography = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.Geography { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Geography; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Geography = value; }
/// Internal Acessors for GeographyGroup
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal.GeographyGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).GeographyGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).GeographyGroup = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.GeographyGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).GeographyGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).GeographyGroup = value; }
/// Internal Acessors for HomeLocation
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal.HomeLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).HomeLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).HomeLocation = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.HomeLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).HomeLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).HomeLocation = value; }
/// Internal Acessors for Latitude
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal.Latitude { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).Latitude; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).Latitude = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.Latitude { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Latitude; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Latitude = value; }
/// Internal Acessors for Longitude
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal.Longitude { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).Longitude; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).Longitude = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.Longitude { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Longitude; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Longitude = value; }
/// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneProperties Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZoneProperties()); set { {_property = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZoneProperties()); set { {_property = value;} } }
/// Internal Acessors for ProvisioningState
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).ProvisioningState = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).ProvisioningState = value; }
/// Internal Acessors for RegionCategory
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal.RegionCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).RegionCategory; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).RegionCategory = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.RegionCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionCategory; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionCategory = value; }
/// Internal Acessors for RegionType
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal.RegionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).RegionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).RegionType = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.RegionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionType = value; }
/// Internal Acessors for RegionalDisplayName
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal.RegionalDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).RegionalDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).RegionalDisplayName = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.RegionalDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionalDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionalDisplayName = value; }
/// Internal Acessors for RegistrationState
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneInternal.RegistrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).RegistrationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).RegistrationState = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.RegistrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegistrationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegistrationState = value; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Id = value; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Name = value; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemData = value; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Type = value; }
/// The name of the resource
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).Name; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Name; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneProperties _property;
+ private Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties _property;
/// The resource-specific properties for this resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZoneProperties()); set => this._property = value; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZoneProperties()); set => this._property = value; }
///
/// Status of the last operation performed by the subscription on the Edge Zone resource
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).ProvisioningState; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).ProvisioningState; }
/// Category of region for the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string RegionCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).RegionCategory; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string RegionCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionCategory; }
/// Type of region for the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string RegionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).RegionType; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string RegionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionType; }
/// Regional display name of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string RegionalDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).RegionalDisplayName; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string RegionalDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionalDisplayName; }
/// Indicates the Azure Extended Zone registration’s approval status.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string RegistrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)Property).RegistrationState; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string RegistrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegistrationState; }
/// Gets the resource group name
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); }
///
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- internal Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemData; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemData; }
/// The timestamp of resource creation (UTC).
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
/// The identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; }
/// The type of identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; }
/// The timestamp of resource last modification (UTC)
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
/// The identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; }
/// The type of identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__proxyResource).Type; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Type; }
/// Creates an new instance.
public ExtendedZone()
@@ -177,12 +176,12 @@ public ExtendedZone()
}
/// Validates that this object meets the validation criteria.
- /// an instance that will receive validation
+ /// 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.DeviceRegistry.Runtime.IEventListener eventListener)
+ public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener)
{
await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource);
await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource);
@@ -190,11 +189,11 @@ public ExtendedZone()
}
/// Resource that represents an Azure Extended Zone available to a subscription for registering and unregistering.
public partial interface IExtendedZone :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IProxyResource
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IProxyResource
{
/// Display name of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -205,7 +204,7 @@ public partial interface IExtendedZone :
PossibleTypes = new [] { typeof(string) })]
string DisplayName { get; }
/// Geography of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -216,7 +215,7 @@ public partial interface IExtendedZone :
PossibleTypes = new [] { typeof(string) })]
string Geography { get; }
/// The Geography Group of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -227,7 +226,7 @@ public partial interface IExtendedZone :
PossibleTypes = new [] { typeof(string) })]
string GeographyGroup { get; }
/// The Home Location of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -238,7 +237,7 @@ public partial interface IExtendedZone :
PossibleTypes = new [] { typeof(string) })]
string HomeLocation { get; }
/// The Latitude of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -249,7 +248,7 @@ public partial interface IExtendedZone :
PossibleTypes = new [] { typeof(string) })]
string Latitude { get; }
/// The Longitude of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -262,7 +261,7 @@ public partial interface IExtendedZone :
///
/// Status of the last operation performed by the subscription on the Edge Zone resource
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -271,10 +270,10 @@ public partial interface IExtendedZone :
Description = @"Status of the last operation performed by the subscription on the Edge Zone resource",
SerializedName = @"provisioningState",
PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted")]
string ProvisioningState { get; }
/// Category of region for the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -285,7 +284,7 @@ public partial interface IExtendedZone :
PossibleTypes = new [] { typeof(string) })]
string RegionCategory { get; }
/// Type of region for the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -296,7 +295,7 @@ public partial interface IExtendedZone :
PossibleTypes = new [] { typeof(string) })]
string RegionType { get; }
/// Regional display name of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -307,7 +306,7 @@ public partial interface IExtendedZone :
PossibleTypes = new [] { typeof(string) })]
string RegionalDisplayName { get; }
/// Indicates the Azure Extended Zone registration’s approval status.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -316,13 +315,13 @@ public partial interface IExtendedZone :
Description = @"Indicates the Azure Extended Zone registration’s approval status.",
SerializedName = @"registrationState",
PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("NotRegistered", "PendingRegister", "Registered", "PendingUnregister")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("NotRegistered", "PendingRegister", "Registered", "PendingUnregister")]
string RegistrationState { get; }
}
/// Resource that represents an Azure Extended Zone available to a subscription for registering and unregistering.
internal partial interface IExtendedZoneInternal :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IProxyResourceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IProxyResourceInternal
{
/// Display name of the Azure Extended Zone.
string DisplayName { get; set; }
@@ -337,11 +336,11 @@ internal partial interface IExtendedZoneInternal :
/// The Longitude of the Azure Extended Zone.
string Longitude { get; set; }
/// The resource-specific properties for this resource.
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneProperties Property { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties Property { get; set; }
///
/// Status of the last operation performed by the subscription on the Edge Zone resource
///
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted")]
string ProvisioningState { get; set; }
/// Category of region for the Azure Extended Zone.
string RegionCategory { get; set; }
@@ -350,7 +349,7 @@ internal partial interface IExtendedZoneInternal :
/// Regional display name of the Azure Extended Zone.
string RegionalDisplayName { get; set; }
/// Indicates the Azure Extended Zone registration’s approval status.
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("NotRegistered", "PendingRegister", "Registered", "PendingUnregister")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("NotRegistered", "PendingRegister", "Registered", "PendingUnregister")]
string RegistrationState { get; set; }
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.json.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.json.cs
index ee3474778d..0e104ddfee 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.json.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZone.json.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
///
/// Resource that represents an Azure Extended Zone available to a subscription for registering and unregistering.
@@ -17,15 +17,15 @@ public partial class ExtendedZone
///
/// The JsonNode that should be deserialized into this object.
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json);
+ partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container);
+ partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container);
///
/// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
@@ -38,7 +38,7 @@ public partial class ExtendedZone
/// Determines if the rest of the deserialization should be processed, or if the method should return
/// instantly.
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow);
+ partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json, ref bool returnNow);
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
@@ -51,13 +51,13 @@ public partial class ExtendedZone
/// 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.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow);
+ partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject into a new instance of .
///
- /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from.
- internal ExtendedZone(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ /// A Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject instance to deserialize from.
+ internal ExtendedZone(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -65,35 +65,35 @@ internal ExtendedZone(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.
{
return;
}
- __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ProxyResource(json);
- {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZoneProperties.FromJson(__jsonProperties) : _property;}
+ __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ProxyResource(json);
+ {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZoneProperties.FromJson(__jsonProperties) : _property;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone.
///
- /// a to deserialize from.
+ /// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new ExtendedZone(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new ExtendedZone(json) : null;
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
- /// The container to serialize this object into. If the caller
+ /// 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 .
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode)
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode serializationMode)
{
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject();
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject();
bool returnNow = false;
BeforeToJson(ref container, ref returnNow);
@@ -102,7 +102,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T
return container;
}
__proxyResource?.ToJson(container, serializationMode);
- AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add );
+ AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.PowerShell.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.PowerShell.cs
index de4d264bec..b090d81946 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.PowerShell.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.PowerShell.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
/// The response of a ExtendedZone list operation.
[System.ComponentModel.TypeConverter(typeof(ExtendedZoneListResultTypeConverter))]
@@ -61,33 +61,33 @@ public partial class ExtendedZoneListResult
partial void OverrideToString(ref string stringResult, 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.DeviceRegistry.Models.IExtendedZoneListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ExtendedZoneListResult(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.DeviceRegistry.Models.IExtendedZoneListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ExtendedZoneListResult(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -102,17 +102,17 @@ internal ExtendedZoneListResult(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZoneTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZoneTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResultInternal)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.
@@ -127,11 +127,11 @@ internal ExtendedZoneListResult(global::System.Management.Automation.PSObject co
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZoneTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZoneTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResultInternal)this).NextLink, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -141,12 +141,12 @@ internal ExtendedZoneListResult(global::System.Management.Automation.PSObject co
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString();
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeAll)?.ToString();
public override string ToString()
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.TypeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.TypeConverter.cs
index 882ecf050b..0c816d3745 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.TypeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.TypeConverter.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// A PowerShell PSTypeConverter to support converting to an instance of
@@ -63,7 +63,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
@@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResult ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResult ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResult).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResult).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.cs
index 07c65324d7..a47045ae34 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.cs
@@ -1,29 +1,29 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
/// The response of a ExtendedZone list operation.
public partial class ExtendedZoneListResult :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResult,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResultInternal
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResult,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResultInternal
{
/// Backing field for property.
private string _nextLink;
/// The link to the next page of items
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string NextLink { get => this._nextLink; set => this._nextLink = value; }
/// Backing field for property.
- private System.Collections.Generic.List _value;
+ private System.Collections.Generic.List _value;
/// The ExtendedZone items on this page
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
- public System.Collections.Generic.List Value { get => this._value; set => this._value = value; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
+ public System.Collections.Generic.List Value { get => this._value; set => this._value = value; }
/// Creates an new instance.
public ExtendedZoneListResult()
@@ -33,10 +33,10 @@ public ExtendedZoneListResult()
}
/// The response of a ExtendedZone list operation.
public partial interface IExtendedZoneListResult :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable
{
/// The link to the next page of items
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = false,
Read = true,
@@ -47,7 +47,7 @@ public partial interface IExtendedZoneListResult :
PossibleTypes = new [] { typeof(string) })]
string NextLink { get; set; }
/// The ExtendedZone items on this page
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = true,
ReadOnly = false,
Read = true,
@@ -55,8 +55,8 @@ public partial interface IExtendedZoneListResult :
Update = true,
Description = @"The ExtendedZone items on this page",
SerializedName = @"value",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone) })]
- System.Collections.Generic.List Value { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone) })]
+ System.Collections.Generic.List Value { get; set; }
}
/// The response of a ExtendedZone list operation.
@@ -66,7 +66,7 @@ internal partial interface IExtendedZoneListResultInternal
/// The link to the next page of items
string NextLink { get; set; }
/// The ExtendedZone items on this page
- System.Collections.Generic.List Value { get; set; }
+ System.Collections.Generic.List Value { get; set; }
}
}
\ No newline at end of file
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.json.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.json.cs
index 5e63b2afb1..6beefeb4f4 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.json.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneListResult.json.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
/// The response of a ExtendedZone list operation.
public partial class ExtendedZoneListResult
@@ -15,15 +15,15 @@ public partial class ExtendedZoneListResult
///
/// The JsonNode that should be deserialized into this object.
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json);
+ partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container);
+ partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container);
///
/// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
@@ -36,7 +36,7 @@ public partial class ExtendedZoneListResult
/// Determines if the rest of the deserialization should be processed, or if the method should return
/// instantly.
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow);
+ partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json, ref bool returnNow);
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
@@ -49,13 +49,13 @@ public partial class ExtendedZoneListResult
/// 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.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow);
+ partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject into a new instance of .
///
- /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from.
- internal ExtendedZoneListResult(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ /// A Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject instance to deserialize from.
+ internal ExtendedZoneListResult(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -63,35 +63,35 @@ internal ExtendedZoneListResult(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistr
{
return;
}
- {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ExtendedZone.FromJson(__u) )) ))() : null : _value;}
- {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;}
+ {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone) (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZone.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.DeviceRegistry.Models.IExtendedZoneListResult.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResult.
///
- /// a to deserialize from.
+ /// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResult.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResult.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new ExtendedZoneListResult(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new ExtendedZoneListResult(json) : null;
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
- /// The container to serialize this object into. If the caller
+ /// 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 .
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode)
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode serializationMode)
{
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject();
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject();
bool returnNow = false;
BeforeToJson(ref container, ref returnNow);
@@ -101,14 +101,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T
}
if (null != this._value)
{
- var __w = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray();
+ var __w = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.XNodeArray();
foreach( var __x in this._value )
{
AddIf(__x?.ToJson(null, serializationMode) ,__w.Add);
}
container.Add("value",__w);
}
- AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
+ AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.PowerShell.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.PowerShell.cs
index 9185353246..a28816ca11 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.PowerShell.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.PowerShell.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
/// The properties of an Extended Zone resource.
[System.ComponentModel.TypeConverter(typeof(ExtendedZonePropertiesTypeConverter))]
@@ -61,33 +61,33 @@ public partial class ExtendedZoneProperties
partial void OverrideToString(ref string stringResult, 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.DeviceRegistry.Models.IExtendedZoneProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ExtendedZoneProperties(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.DeviceRegistry.Models.IExtendedZoneProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ExtendedZoneProperties(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -102,53 +102,53 @@ internal ExtendedZoneProperties(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString);
}
if (content.Contains("RegistrationState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegistrationState = (string) content.GetValueForProperty("RegistrationState",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegistrationState, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegistrationState = (string) content.GetValueForProperty("RegistrationState",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegistrationState, global::System.Convert.ToString);
}
if (content.Contains("DisplayName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).DisplayName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).DisplayName, global::System.Convert.ToString);
}
if (content.Contains("RegionalDisplayName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegionalDisplayName = (string) content.GetValueForProperty("RegionalDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegionalDisplayName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegionalDisplayName = (string) content.GetValueForProperty("RegionalDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegionalDisplayName, global::System.Convert.ToString);
}
if (content.Contains("RegionType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegionType = (string) content.GetValueForProperty("RegionType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegionType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegionType = (string) content.GetValueForProperty("RegionType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegionType, global::System.Convert.ToString);
}
if (content.Contains("RegionCategory"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegionCategory = (string) content.GetValueForProperty("RegionCategory",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegionCategory, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegionCategory = (string) content.GetValueForProperty("RegionCategory",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegionCategory, global::System.Convert.ToString);
}
if (content.Contains("Geography"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).Geography = (string) content.GetValueForProperty("Geography",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).Geography, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).Geography = (string) content.GetValueForProperty("Geography",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).Geography, global::System.Convert.ToString);
}
if (content.Contains("GeographyGroup"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).GeographyGroup = (string) content.GetValueForProperty("GeographyGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).GeographyGroup, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).GeographyGroup = (string) content.GetValueForProperty("GeographyGroup",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).GeographyGroup, global::System.Convert.ToString);
}
if (content.Contains("Longitude"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).Longitude = (string) content.GetValueForProperty("Longitude",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).Longitude, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).Longitude = (string) content.GetValueForProperty("Longitude",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).Longitude, global::System.Convert.ToString);
}
if (content.Contains("Latitude"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).Latitude = (string) content.GetValueForProperty("Latitude",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).Latitude, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).Latitude = (string) content.GetValueForProperty("Latitude",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).Latitude, global::System.Convert.ToString);
}
if (content.Contains("HomeLocation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).HomeLocation = (string) content.GetValueForProperty("HomeLocation",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).HomeLocation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).HomeLocation = (string) content.GetValueForProperty("HomeLocation",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).HomeLocation, 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.
@@ -163,47 +163,47 @@ internal ExtendedZoneProperties(global::System.Management.Automation.PSObject co
// actually deserialize
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString);
}
if (content.Contains("RegistrationState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegistrationState = (string) content.GetValueForProperty("RegistrationState",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegistrationState, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegistrationState = (string) content.GetValueForProperty("RegistrationState",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegistrationState, global::System.Convert.ToString);
}
if (content.Contains("DisplayName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).DisplayName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).DisplayName, global::System.Convert.ToString);
}
if (content.Contains("RegionalDisplayName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegionalDisplayName = (string) content.GetValueForProperty("RegionalDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegionalDisplayName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegionalDisplayName = (string) content.GetValueForProperty("RegionalDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegionalDisplayName, global::System.Convert.ToString);
}
if (content.Contains("RegionType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegionType = (string) content.GetValueForProperty("RegionType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegionType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegionType = (string) content.GetValueForProperty("RegionType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegionType, global::System.Convert.ToString);
}
if (content.Contains("RegionCategory"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegionCategory = (string) content.GetValueForProperty("RegionCategory",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).RegionCategory, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegionCategory = (string) content.GetValueForProperty("RegionCategory",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).RegionCategory, global::System.Convert.ToString);
}
if (content.Contains("Geography"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).Geography = (string) content.GetValueForProperty("Geography",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).Geography, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).Geography = (string) content.GetValueForProperty("Geography",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).Geography, global::System.Convert.ToString);
}
if (content.Contains("GeographyGroup"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).GeographyGroup = (string) content.GetValueForProperty("GeographyGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).GeographyGroup, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).GeographyGroup = (string) content.GetValueForProperty("GeographyGroup",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).GeographyGroup, global::System.Convert.ToString);
}
if (content.Contains("Longitude"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).Longitude = (string) content.GetValueForProperty("Longitude",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).Longitude, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).Longitude = (string) content.GetValueForProperty("Longitude",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).Longitude, global::System.Convert.ToString);
}
if (content.Contains("Latitude"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).Latitude = (string) content.GetValueForProperty("Latitude",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).Latitude, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).Latitude = (string) content.GetValueForProperty("Latitude",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).Latitude, global::System.Convert.ToString);
}
if (content.Contains("HomeLocation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).HomeLocation = (string) content.GetValueForProperty("HomeLocation",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal)this).HomeLocation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).HomeLocation = (string) content.GetValueForProperty("HomeLocation",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)this).HomeLocation, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -213,12 +213,12 @@ internal ExtendedZoneProperties(global::System.Management.Automation.PSObject co
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString();
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeAll)?.ToString();
public override string ToString()
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.TypeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.TypeConverter.cs
index f1fc25926e..8ba27cebf8 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.TypeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.TypeConverter.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// A PowerShell PSTypeConverter to support converting to an instance of
@@ -63,7 +63,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
@@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.cs
index a73d753f60..34ad1d9f85 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.cs
@@ -1,90 +1,90 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
/// The properties of an Extended Zone resource.
public partial class ExtendedZoneProperties :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneProperties,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal
{
/// Backing field for property.
private string _displayName;
/// Display name of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string DisplayName { get => this._displayName; }
/// Backing field for property.
private string _geography;
/// Geography of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Geography { get => this._geography; }
/// Backing field for property.
private string _geographyGroup;
/// The Geography Group of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string GeographyGroup { get => this._geographyGroup; }
/// Backing field for property.
private string _homeLocation;
/// The Home Location of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string HomeLocation { get => this._homeLocation; }
/// Backing field for property.
private string _latitude;
/// The Latitude of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Latitude { get => this._latitude; }
/// Backing field for property.
private string _longitude;
/// The Longitude of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Longitude { get => this._longitude; }
/// Internal Acessors for DisplayName
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal.DisplayName { get => this._displayName; set { {_displayName = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal.DisplayName { get => this._displayName; set { {_displayName = value;} } }
/// Internal Acessors for Geography
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal.Geography { get => this._geography; set { {_geography = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal.Geography { get => this._geography; set { {_geography = value;} } }
/// Internal Acessors for GeographyGroup
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal.GeographyGroup { get => this._geographyGroup; set { {_geographyGroup = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal.GeographyGroup { get => this._geographyGroup; set { {_geographyGroup = value;} } }
/// Internal Acessors for HomeLocation
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal.HomeLocation { get => this._homeLocation; set { {_homeLocation = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal.HomeLocation { get => this._homeLocation; set { {_homeLocation = value;} } }
/// Internal Acessors for Latitude
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal.Latitude { get => this._latitude; set { {_latitude = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal.Latitude { get => this._latitude; set { {_latitude = value;} } }
/// Internal Acessors for Longitude
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal.Longitude { get => this._longitude; set { {_longitude = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal.Longitude { get => this._longitude; set { {_longitude = value;} } }
/// Internal Acessors for ProvisioningState
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
/// Internal Acessors for RegionCategory
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal.RegionCategory { get => this._regionCategory; set { {_regionCategory = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal.RegionCategory { get => this._regionCategory; set { {_regionCategory = value;} } }
/// Internal Acessors for RegionType
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal.RegionType { get => this._regionType; set { {_regionType = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal.RegionType { get => this._regionType; set { {_regionType = value;} } }
/// Internal Acessors for RegionalDisplayName
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal.RegionalDisplayName { get => this._regionalDisplayName; set { {_regionalDisplayName = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal.RegionalDisplayName { get => this._regionalDisplayName; set { {_regionalDisplayName = value;} } }
/// Internal Acessors for RegistrationState
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZonePropertiesInternal.RegistrationState { get => this._registrationState; set { {_registrationState = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal.RegistrationState { get => this._registrationState; set { {_registrationState = value;} } }
/// Backing field for property.
private string _provisioningState;
@@ -92,35 +92,35 @@ public partial class ExtendedZoneProperties :
///
/// Status of the last operation performed by the subscription on the Edge Zone resource
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string ProvisioningState { get => this._provisioningState; }
/// Backing field for property.
private string _regionCategory;
/// Category of region for the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string RegionCategory { get => this._regionCategory; }
/// Backing field for property.
private string _regionType;
/// Type of region for the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string RegionType { get => this._regionType; }
/// Backing field for property.
private string _regionalDisplayName;
/// Regional display name of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string RegionalDisplayName { get => this._regionalDisplayName; }
/// Backing field for property.
private string _registrationState;
/// Indicates the Azure Extended Zone registration’s approval status.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string RegistrationState { get => this._registrationState; }
/// Creates an new instance.
@@ -131,10 +131,10 @@ public ExtendedZoneProperties()
}
/// The properties of an Extended Zone resource.
public partial interface IExtendedZoneProperties :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable
{
/// Display name of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = true,
ReadOnly = true,
Read = true,
@@ -145,7 +145,7 @@ public partial interface IExtendedZoneProperties :
PossibleTypes = new [] { typeof(string) })]
string DisplayName { get; }
/// Geography of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = true,
ReadOnly = true,
Read = true,
@@ -156,7 +156,7 @@ public partial interface IExtendedZoneProperties :
PossibleTypes = new [] { typeof(string) })]
string Geography { get; }
/// The Geography Group of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = true,
ReadOnly = true,
Read = true,
@@ -167,7 +167,7 @@ public partial interface IExtendedZoneProperties :
PossibleTypes = new [] { typeof(string) })]
string GeographyGroup { get; }
/// The Home Location of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = true,
ReadOnly = true,
Read = true,
@@ -178,7 +178,7 @@ public partial interface IExtendedZoneProperties :
PossibleTypes = new [] { typeof(string) })]
string HomeLocation { get; }
/// The Latitude of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = true,
ReadOnly = true,
Read = true,
@@ -189,7 +189,7 @@ public partial interface IExtendedZoneProperties :
PossibleTypes = new [] { typeof(string) })]
string Latitude { get; }
/// The Longitude of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = true,
ReadOnly = true,
Read = true,
@@ -202,7 +202,7 @@ public partial interface IExtendedZoneProperties :
///
/// Status of the last operation performed by the subscription on the Edge Zone resource
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -211,10 +211,10 @@ public partial interface IExtendedZoneProperties :
Description = @"Status of the last operation performed by the subscription on the Edge Zone resource",
SerializedName = @"provisioningState",
PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted")]
string ProvisioningState { get; }
/// Category of region for the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = true,
ReadOnly = true,
Read = true,
@@ -225,7 +225,7 @@ public partial interface IExtendedZoneProperties :
PossibleTypes = new [] { typeof(string) })]
string RegionCategory { get; }
/// Type of region for the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = true,
ReadOnly = true,
Read = true,
@@ -236,7 +236,7 @@ public partial interface IExtendedZoneProperties :
PossibleTypes = new [] { typeof(string) })]
string RegionType { get; }
/// Regional display name of the Azure Extended Zone.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = true,
ReadOnly = true,
Read = true,
@@ -247,7 +247,7 @@ public partial interface IExtendedZoneProperties :
PossibleTypes = new [] { typeof(string) })]
string RegionalDisplayName { get; }
/// Indicates the Azure Extended Zone registration’s approval status.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -256,7 +256,7 @@ public partial interface IExtendedZoneProperties :
Description = @"Indicates the Azure Extended Zone registration’s approval status.",
SerializedName = @"registrationState",
PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("NotRegistered", "PendingRegister", "Registered", "PendingUnregister")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("NotRegistered", "PendingRegister", "Registered", "PendingUnregister")]
string RegistrationState { get; }
}
@@ -279,7 +279,7 @@ internal partial interface IExtendedZonePropertiesInternal
///
/// Status of the last operation performed by the subscription on the Edge Zone resource
///
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted")]
string ProvisioningState { get; set; }
/// Category of region for the Azure Extended Zone.
string RegionCategory { get; set; }
@@ -288,7 +288,7 @@ internal partial interface IExtendedZonePropertiesInternal
/// Regional display name of the Azure Extended Zone.
string RegionalDisplayName { get; set; }
/// Indicates the Azure Extended Zone registration’s approval status.
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("NotRegistered", "PendingRegister", "Registered", "PendingUnregister")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("NotRegistered", "PendingRegister", "Registered", "PendingUnregister")]
string RegistrationState { get; set; }
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.json.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.json.cs
index 1a4f245ab6..dbf7b81667 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.json.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ExtendedZoneProperties.json.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
/// The properties of an Extended Zone resource.
public partial class ExtendedZoneProperties
@@ -15,15 +15,15 @@ public partial class ExtendedZoneProperties
///
/// The JsonNode that should be deserialized into this object.
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json);
+ partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container);
+ partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container);
///
/// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
@@ -36,7 +36,7 @@ public partial class ExtendedZoneProperties
/// Determines if the rest of the deserialization should be processed, or if the method should return
/// instantly.
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow);
+ partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json, ref bool returnNow);
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
@@ -49,13 +49,13 @@ public partial class ExtendedZoneProperties
/// 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.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow);
+ partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject into a new instance of .
///
- /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from.
- internal ExtendedZoneProperties(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ /// A Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject instance to deserialize from.
+ internal ExtendedZoneProperties(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -63,44 +63,44 @@ internal ExtendedZoneProperties(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistr
{
return;
}
- {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;}
- {_registrationState = If( json?.PropertyT("registrationState"), out var __jsonRegistrationState) ? (string)__jsonRegistrationState : (string)_registrationState;}
- {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)_displayName;}
- {_regionalDisplayName = If( json?.PropertyT("regionalDisplayName"), out var __jsonRegionalDisplayName) ? (string)__jsonRegionalDisplayName : (string)_regionalDisplayName;}
- {_regionType = If( json?.PropertyT("regionType"), out var __jsonRegionType) ? (string)__jsonRegionType : (string)_regionType;}
- {_regionCategory = If( json?.PropertyT("regionCategory"), out var __jsonRegionCategory) ? (string)__jsonRegionCategory : (string)_regionCategory;}
- {_geography = If( json?.PropertyT("geography"), out var __jsonGeography) ? (string)__jsonGeography : (string)_geography;}
- {_geographyGroup = If( json?.PropertyT("geographyGroup"), out var __jsonGeographyGroup) ? (string)__jsonGeographyGroup : (string)_geographyGroup;}
- {_longitude = If( json?.PropertyT("longitude"), out var __jsonLongitude) ? (string)__jsonLongitude : (string)_longitude;}
- {_latitude = If( json?.PropertyT("latitude"), out var __jsonLatitude) ? (string)__jsonLatitude : (string)_latitude;}
- {_homeLocation = If( json?.PropertyT("homeLocation"), out var __jsonHomeLocation) ? (string)__jsonHomeLocation : (string)_homeLocation;}
+ {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;}
+ {_registrationState = If( json?.PropertyT("registrationState"), out var __jsonRegistrationState) ? (string)__jsonRegistrationState : (string)_registrationState;}
+ {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)_displayName;}
+ {_regionalDisplayName = If( json?.PropertyT("regionalDisplayName"), out var __jsonRegionalDisplayName) ? (string)__jsonRegionalDisplayName : (string)_regionalDisplayName;}
+ {_regionType = If( json?.PropertyT("regionType"), out var __jsonRegionType) ? (string)__jsonRegionType : (string)_regionType;}
+ {_regionCategory = If( json?.PropertyT("regionCategory"), out var __jsonRegionCategory) ? (string)__jsonRegionCategory : (string)_regionCategory;}
+ {_geography = If( json?.PropertyT("geography"), out var __jsonGeography) ? (string)__jsonGeography : (string)_geography;}
+ {_geographyGroup = If( json?.PropertyT("geographyGroup"), out var __jsonGeographyGroup) ? (string)__jsonGeographyGroup : (string)_geographyGroup;}
+ {_longitude = If( json?.PropertyT("longitude"), out var __jsonLongitude) ? (string)__jsonLongitude : (string)_longitude;}
+ {_latitude = If( json?.PropertyT("latitude"), out var __jsonLatitude) ? (string)__jsonLatitude : (string)_latitude;}
+ {_homeLocation = If( json?.PropertyT("homeLocation"), out var __jsonHomeLocation) ? (string)__jsonHomeLocation : (string)_homeLocation;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties.
///
- /// a to deserialize from.
+ /// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new ExtendedZoneProperties(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new ExtendedZoneProperties(json) : null;
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
- /// The container to serialize this object into. If the caller
+ /// 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 .
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode)
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode serializationMode)
{
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject();
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject();
bool returnNow = false;
BeforeToJson(ref container, ref returnNow);
@@ -108,49 +108,49 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add );
+ AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._registrationState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._registrationState.ToString()) : null, "registrationState" ,container.Add );
+ AddIf( null != (((object)this._registrationState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._registrationState.ToString()) : null, "registrationState" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add );
+ AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._regionalDisplayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._regionalDisplayName.ToString()) : null, "regionalDisplayName" ,container.Add );
+ AddIf( null != (((object)this._regionalDisplayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._regionalDisplayName.ToString()) : null, "regionalDisplayName" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._regionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._regionType.ToString()) : null, "regionType" ,container.Add );
+ AddIf( null != (((object)this._regionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._regionType.ToString()) : null, "regionType" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._regionCategory)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._regionCategory.ToString()) : null, "regionCategory" ,container.Add );
+ AddIf( null != (((object)this._regionCategory)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._regionCategory.ToString()) : null, "regionCategory" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._geography)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._geography.ToString()) : null, "geography" ,container.Add );
+ AddIf( null != (((object)this._geography)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._geography.ToString()) : null, "geography" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._geographyGroup)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._geographyGroup.ToString()) : null, "geographyGroup" ,container.Add );
+ AddIf( null != (((object)this._geographyGroup)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._geographyGroup.ToString()) : null, "geographyGroup" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._longitude)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._longitude.ToString()) : null, "longitude" ,container.Add );
+ AddIf( null != (((object)this._longitude)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._longitude.ToString()) : null, "longitude" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._latitude)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._latitude.ToString()) : null, "latitude" ,container.Add );
+ AddIf( null != (((object)this._latitude)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._latitude.ToString()) : null, "latitude" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._homeLocation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._homeLocation.ToString()) : null, "homeLocation" ,container.Add );
+ AddIf( null != (((object)this._homeLocation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._homeLocation.ToString()) : null, "homeLocation" ,container.Add );
}
AfterToJson(ref container);
return container;
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.PowerShell.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.PowerShell.cs
index 89f9bbc217..3be9c10e91 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.PowerShell.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.PowerShell.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// Details of a REST API operation, returned from the Resource Provider Operations API
@@ -63,27 +63,27 @@ public partial class Operation
partial void OverrideToString(ref string stringResult, 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.DeviceRegistry.Models.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new Operation(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.DeviceRegistry.Models.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new Operation(content);
}
@@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperatio
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.
@@ -111,45 +111,45 @@ internal Operation(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Display"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.OperationDisplayTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.OperationDisplayTypeConverter.ConvertFrom);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("IsDataAction"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
}
if (content.Contains("Origin"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).Origin, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).Origin, global::System.Convert.ToString);
}
if (content.Contains("ActionType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).ActionType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).ActionType, global::System.Convert.ToString);
}
if (content.Contains("DisplayProvider"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString);
}
if (content.Contains("DisplayResource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayResource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayResource, global::System.Convert.ToString);
}
if (content.Contains("DisplayOperation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString);
}
if (content.Contains("DisplayDescription"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayDescription, 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.
@@ -164,39 +164,39 @@ internal Operation(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Display"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.OperationDisplayTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.OperationDisplayTypeConverter.ConvertFrom);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("IsDataAction"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
}
if (content.Contains("Origin"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).Origin, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).Origin, global::System.Convert.ToString);
}
if (content.Contains("ActionType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).ActionType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).ActionType, global::System.Convert.ToString);
}
if (content.Contains("DisplayProvider"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString);
}
if (content.Contains("DisplayResource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayResource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayResource, global::System.Convert.ToString);
}
if (content.Contains("DisplayOperation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString);
}
if (content.Contains("DisplayDescription"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -204,7 +204,7 @@ internal Operation(global::System.Management.Automation.PSObject 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.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString();
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeAll)?.ToString();
public override string ToString()
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.TypeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.TypeConverter.cs
index 35b8b385d9..14f214b719 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.TypeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.TypeConverter.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// A PowerShell PSTypeConverter to support converting to an instance of
@@ -62,7 +62,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
@@ -103,14 +103,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperation ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperation ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperation).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperation).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.cs
index 1d215b2de1..bfe2855b72 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.cs
@@ -1,16 +1,16 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
///
/// Details of a REST API operation, returned from the Resource Provider Operations API
///
public partial class Operation :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperation,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperation,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal
{
/// Backing field for property.
@@ -19,40 +19,40 @@ public partial class Operation :
///
/// Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string ActionType { get => this._actionType; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplay _display;
+ private Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay _display;
/// Localized display information for this particular operation.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.OperationDisplay()); set => this._display = value; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.OperationDisplay()); set => this._display = value; }
///
/// The short, localized friendly description of the operation; suitable for tool tips and detailed views.
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)Display).Description; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Description; }
///
/// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine",
/// "Restart Virtual Machine".
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)Display).Operation; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Operation; }
///
/// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)Display).Provider; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Provider; }
///
/// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)Display).Resource; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Resource; }
/// Backing field for property.
private bool? _isDataAction;
@@ -61,35 +61,35 @@ public partial class Operation :
/// Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane
/// operations.
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public bool? IsDataAction { get => this._isDataAction; }
/// Internal Acessors for ActionType
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal.ActionType { get => this._actionType; set { {_actionType = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.ActionType { get => this._actionType; set { {_actionType = value;} } }
/// Internal Acessors for Display
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.OperationDisplay()); set { {_display = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.OperationDisplay()); set { {_display = value;} } }
/// Internal Acessors for DisplayDescription
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)Display).Description = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Description = value; }
/// Internal Acessors for DisplayOperation
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)Display).Operation = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Operation = value; }
/// Internal Acessors for DisplayProvider
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)Display).Provider = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Provider = value; }
/// Internal Acessors for DisplayResource
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)Display).Resource = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Resource = value; }
/// Internal Acessors for IsDataAction
- bool? Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } }
+ bool? Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal.Name { get => this._name; set { {_name = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.Name { get => this._name; set { {_name = value;} } }
/// Internal Acessors for Origin
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } }
/// Backing field for property.
private string _name;
@@ -98,7 +98,7 @@ public partial class Operation :
/// The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write",
/// "Microsoft.Compute/virtualMachines/capture/action"
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Name { get => this._name; }
/// Backing field for property.
@@ -108,7 +108,7 @@ public partial class Operation :
/// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is
/// "user,system"
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Origin { get => this._origin; }
/// Creates an new instance.
@@ -119,12 +119,12 @@ public Operation()
}
/// Details of a REST API operation, returned from the Resource Provider Operations API
public partial interface IOperation :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable
{
///
/// Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -133,12 +133,12 @@ public partial interface IOperation :
Description = @"Extensible enum. Indicates the action type. ""Internal"" refers to actions that are for internal only APIs.",
SerializedName = @"actionType",
PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("Internal")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("Internal")]
string ActionType { get; }
///
/// The short, localized friendly description of the operation; suitable for tool tips and detailed views.
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -152,7 +152,7 @@ public partial interface IOperation :
/// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine",
/// "Restart Virtual Machine".
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -165,7 +165,7 @@ public partial interface IOperation :
///
/// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -178,7 +178,7 @@ public partial interface IOperation :
///
/// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -192,7 +192,7 @@ public partial interface IOperation :
/// Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane
/// operations.
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -206,7 +206,7 @@ public partial interface IOperation :
/// The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write",
/// "Microsoft.Compute/virtualMachines/capture/action"
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -220,7 +220,7 @@ public partial interface IOperation :
/// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is
/// "user,system"
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -229,7 +229,7 @@ public partial interface IOperation :
Description = @"The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is ""user,system""",
SerializedName = @"origin",
PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("user", "system", "user,system")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("user", "system", "user,system")]
string Origin { get; }
}
@@ -240,10 +240,10 @@ internal partial interface IOperationInternal
///
/// Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
///
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("Internal")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("Internal")]
string ActionType { get; set; }
/// Localized display information for this particular operation.
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplay Display { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay Display { get; set; }
///
/// The short, localized friendly description of the operation; suitable for tool tips and detailed views.
///
@@ -275,7 +275,7 @@ internal partial interface IOperationInternal
/// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is
/// "user,system"
///
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("user", "system", "user,system")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("user", "system", "user,system")]
string Origin { get; set; }
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.json.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.json.cs
index 653b1f5e84..bc7cd6b481 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.json.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Operation.json.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
///
/// Details of a REST API operation, returned from the Resource Provider Operations API
@@ -17,15 +17,15 @@ public partial class Operation
///
/// The JsonNode that should be deserialized into this object.
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json);
+ partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container);
+ partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container);
///
/// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
@@ -38,7 +38,7 @@ public partial class Operation
/// Determines if the rest of the deserialization should be processed, or if the method should return
/// instantly.
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow);
+ partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json, ref bool returnNow);
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
@@ -51,25 +51,23 @@ public partial class Operation
/// 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.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow);
+ partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperation.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperation.
///
- /// a to deserialize from.
- ///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperation.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ /// a to deserialize from.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperation.
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new Operation(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new Operation(json) : null;
}
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject into a new instance of .
///
- /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from.
- internal Operation(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ /// A Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject instance to deserialize from.
+ internal Operation(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -77,26 +75,26 @@ internal Operation(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Jso
{
return;
}
- {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.OperationDisplay.FromJson(__jsonDisplay) : _display;}
- {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;}
- {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : _isDataAction;}
- {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)_origin;}
- {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)_actionType;}
+ {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.OperationDisplay.FromJson(__jsonDisplay) : _display;}
+ {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;}
+ {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : _isDataAction;}
+ {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)_origin;}
+ {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)_actionType;}
AfterFromJson(json);
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
- /// The container to serialize this object into. If the caller
+ /// 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 .
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode)
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode serializationMode)
{
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject();
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject();
bool returnNow = false;
BeforeToJson(ref container, ref returnNow);
@@ -104,22 +102,22 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T
{
return container;
}
- AddIf( null != this._display ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) this._display.ToJson(null,serializationMode) : null, "display" ,container.Add );
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ AddIf( null != this._display ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) this._display.ToJson(null,serializationMode) : null, "display" ,container.Add );
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add );
+ AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != this._isDataAction ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonBoolean((bool)this._isDataAction) : null, "isDataAction" ,container.Add );
+ AddIf( null != this._isDataAction ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonBoolean((bool)this._isDataAction) : null, "isDataAction" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._origin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._origin.ToString()) : null, "origin" ,container.Add );
+ AddIf( null != (((object)this._origin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._origin.ToString()) : null, "origin" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._actionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._actionType.ToString()) : null, "actionType" ,container.Add );
+ AddIf( null != (((object)this._actionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._actionType.ToString()) : null, "actionType" ,container.Add );
}
AfterToJson(ref container);
return container;
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.PowerShell.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.PowerShell.cs
index 9ca6b2e9fb..ae4edd846c 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.PowerShell.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.PowerShell.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
/// Localized display information for and operation.
[System.ComponentModel.TypeConverter(typeof(OperationDisplayTypeConverter))]
@@ -61,27 +61,27 @@ public partial class OperationDisplay
partial void OverrideToString(ref string stringResult, 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.DeviceRegistry.Models.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new OperationDisplay(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.DeviceRegistry.Models.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new OperationDisplay(content);
}
@@ -91,10 +91,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperatio
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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,25 +109,25 @@ internal OperationDisplay(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Provider"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString);
}
if (content.Contains("Resource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString);
}
if (content.Contains("Operation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString);
}
if (content.Contains("Description"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Description, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Description, 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.
@@ -142,19 +142,19 @@ internal OperationDisplay(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Provider"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString);
}
if (content.Contains("Resource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString);
}
if (content.Contains("Operation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString);
}
if (content.Contains("Description"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal)this).Description, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)this).Description, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -162,7 +162,7 @@ internal OperationDisplay(global::System.Management.Automation.PSObject 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.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString();
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeAll)?.ToString();
public override string ToString()
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.TypeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.TypeConverter.cs
index 89888d71b9..65f95f5bc9 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.TypeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.TypeConverter.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// A PowerShell PSTypeConverter to support converting to an instance of
@@ -63,7 +63,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
@@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplay ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplay).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.cs
index 29683cd338..79c7762799 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.cs
@@ -1,14 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
/// Localized display information for and operation.
public partial class OperationDisplay :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplay,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal
{
/// Backing field for property.
@@ -17,20 +17,20 @@ public partial class OperationDisplay :
///
/// The short, localized friendly description of the operation; suitable for tool tips and detailed views.
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Description { get => this._description; }
/// Internal Acessors for Description
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal.Description { get => this._description; set { {_description = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal.Description { get => this._description; set { {_description = value;} } }
/// Internal Acessors for Operation
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } }
/// Internal Acessors for Provider
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } }
/// Internal Acessors for Resource
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } }
/// Backing field for property.
private string _operation;
@@ -39,7 +39,7 @@ public partial class OperationDisplay :
/// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine",
/// "Restart Virtual Machine".
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Operation { get => this._operation; }
/// Backing field for property.
@@ -48,7 +48,7 @@ public partial class OperationDisplay :
///
/// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Provider { get => this._provider; }
/// Backing field for property.
@@ -57,7 +57,7 @@ public partial class OperationDisplay :
///
/// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Resource { get => this._resource; }
/// Creates an new instance.
@@ -68,12 +68,12 @@ public OperationDisplay()
}
/// Localized display information for and operation.
public partial interface IOperationDisplay :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable
{
///
/// The short, localized friendly description of the operation; suitable for tool tips and detailed views.
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -87,7 +87,7 @@ public partial interface IOperationDisplay :
/// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine",
/// "Restart Virtual Machine".
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -100,7 +100,7 @@ public partial interface IOperationDisplay :
///
/// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -113,7 +113,7 @@ public partial interface IOperationDisplay :
///
/// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.json.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.json.cs
index 6adf06228a..9f85dc8fa1 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.json.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationDisplay.json.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
/// Localized display information for and operation.
public partial class OperationDisplay
@@ -15,15 +15,15 @@ public partial class OperationDisplay
///
/// The JsonNode that should be deserialized into this object.
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json);
+ partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container);
+ partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container);
///
/// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
@@ -36,7 +36,7 @@ public partial class OperationDisplay
/// Determines if the rest of the deserialization should be processed, or if the method should return
/// instantly.
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow);
+ partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json, ref bool returnNow);
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
@@ -49,25 +49,25 @@ public partial class OperationDisplay
/// 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.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow);
+ partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplay.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay.
///
- /// a to deserialize from.
+ /// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplay.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new OperationDisplay(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new OperationDisplay(json) : null;
}
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject into a new instance of .
///
- /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from.
- internal OperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ /// A Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject instance to deserialize from.
+ internal OperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -75,25 +75,25 @@ internal OperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runt
{
return;
}
- {_provider = If( json?.PropertyT("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)_provider;}
- {_resource = If( json?.PropertyT("resource"), out var __jsonResource) ? (string)__jsonResource : (string)_resource;}
- {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)_operation;}
- {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;}
+ {_provider = If( json?.PropertyT("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)_provider;}
+ {_resource = If( json?.PropertyT("resource"), out var __jsonResource) ? (string)__jsonResource : (string)_resource;}
+ {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)_operation;}
+ {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;}
AfterFromJson(json);
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
- /// The container to serialize this object into. If the caller
+ /// 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 .
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode)
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode serializationMode)
{
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject();
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject();
bool returnNow = false;
BeforeToJson(ref container, ref returnNow);
@@ -101,21 +101,21 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._provider)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._provider.ToString()) : null, "provider" ,container.Add );
+ AddIf( null != (((object)this._provider)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._provider.ToString()) : null, "provider" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._resource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._resource.ToString()) : null, "resource" ,container.Add );
+ AddIf( null != (((object)this._resource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._resource.ToString()) : null, "resource" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._operation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._operation.ToString()) : null, "operation" ,container.Add );
+ AddIf( null != (((object)this._operation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._operation.ToString()) : null, "operation" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add );
+ AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add );
}
AfterToJson(ref container);
return container;
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.PowerShell.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.PowerShell.cs
index bb0f402493..2a5fdac52b 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.PowerShell.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.PowerShell.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of
@@ -64,27 +64,27 @@ public partial class OperationListResult
partial void OverrideToString(ref string stringResult, 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.DeviceRegistry.Models.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new OperationListResult(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.DeviceRegistry.Models.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new OperationListResult(content);
}
@@ -94,10 +94,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperatio
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.
@@ -112,17 +112,17 @@ internal OperationListResult(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.OperationTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.OperationTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResultInternal)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.
@@ -137,11 +137,11 @@ internal OperationListResult(global::System.Management.Automation.PSObject conte
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.OperationTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.OperationTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -149,7 +149,7 @@ internal OperationListResult(global::System.Management.Automation.PSObject conte
/// Serializes this instance to a json string.
/// a containing this model serialized to JSON text.
- public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString();
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeAll)?.ToString();
public override string ToString()
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.TypeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.TypeConverter.cs
index 834f692406..4051edb8aa 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.TypeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.TypeConverter.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// A PowerShell PSTypeConverter to support converting to an instance of
@@ -63,7 +63,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
@@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResult ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResult ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResult).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResult).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.cs
index 579d2e098c..332ff74c16 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.cs
@@ -1,32 +1,32 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
///
/// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of
/// results.
///
public partial class OperationListResult :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResult,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResultInternal
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResult,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResultInternal
{
/// Backing field for property.
private string _nextLink;
/// The link to the next page of items
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string NextLink { get => this._nextLink; set => this._nextLink = value; }
/// Backing field for property.
- private System.Collections.Generic.List _value;
+ private System.Collections.Generic.List _value;
/// The Operation items on this page
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
- public System.Collections.Generic.List Value { get => this._value; set => this._value = value; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
+ public System.Collections.Generic.List Value { get => this._value; set => this._value = value; }
/// Creates an new instance.
public OperationListResult()
@@ -37,10 +37,10 @@ public OperationListResult()
/// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of
/// results.
public partial interface IOperationListResult :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable
{
/// The link to the next page of items
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = false,
Read = true,
@@ -51,7 +51,7 @@ public partial interface IOperationListResult :
PossibleTypes = new [] { typeof(string) })]
string NextLink { get; set; }
/// The Operation items on this page
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = true,
ReadOnly = false,
Read = true,
@@ -59,8 +59,8 @@ public partial interface IOperationListResult :
Update = true,
Description = @"The Operation items on this page",
SerializedName = @"value",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperation) })]
- System.Collections.Generic.List Value { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperation) })]
+ System.Collections.Generic.List Value { get; set; }
}
/// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of
@@ -71,7 +71,7 @@ internal partial interface IOperationListResultInternal
/// The link to the next page of items
string NextLink { get; set; }
/// The Operation items on this page
- System.Collections.Generic.List Value { get; set; }
+ System.Collections.Generic.List Value { get; set; }
}
}
\ No newline at end of file
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.json.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.json.cs
index 2c3f833b93..7550d676e1 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.json.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/OperationListResult.json.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
///
/// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of
@@ -18,15 +18,15 @@ public partial class OperationListResult
///
/// The JsonNode that should be deserialized into this object.
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json);
+ partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container);
+ partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container);
///
/// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
@@ -39,7 +39,7 @@ public partial class OperationListResult
/// Determines if the rest of the deserialization should be processed, or if the method should return
/// instantly.
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow);
+ partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json, ref bool returnNow);
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
@@ -52,25 +52,25 @@ public partial class OperationListResult
/// 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.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow);
+ partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResult.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResult.
///
- /// a to deserialize from.
+ /// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResult.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResult.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new OperationListResult(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new OperationListResult(json) : null;
}
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject into a new instance of .
///
- /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from.
- internal OperationListResult(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ /// A Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject instance to deserialize from.
+ internal OperationListResult(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -78,23 +78,23 @@ internal OperationListResult(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.R
{
return;
}
- {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.Operation.FromJson(__u) )) ))() : null : _value;}
- {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;}
+ {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.Operation.FromJson(__u) )) ))() : null : _value;}
+ {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;}
AfterFromJson(json);
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
- /// The container to serialize this object into. If the caller
+ /// 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 .
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode)
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode serializationMode)
{
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject();
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject();
bool returnNow = false;
BeforeToJson(ref container, ref returnNow);
@@ -104,14 +104,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T
}
if (null != this._value)
{
- var __w = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray();
+ var __w = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.XNodeArray();
foreach( var __x in this._value )
{
AddIf(__x?.ToJson(null, serializationMode) ,__w.Add);
}
container.Add("value",__w);
}
- AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
+ AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.PowerShell.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.PowerShell.cs
index f291aec2aa..29f2c9b768 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.PowerShell.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.PowerShell.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
@@ -63,27 +63,27 @@ public partial class ProxyResource
partial void OverrideToString(ref string stringResult, 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.DeviceRegistry.Models.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ProxyResource(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ProxyResource(content);
}
@@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IProxyRes
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.
@@ -111,49 +111,49 @@ internal ProxyResource(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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.DeviceRegistry.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.SystemDataTypeConverter.ConvertFrom);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -168,43 +168,43 @@ internal ProxyResource(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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.DeviceRegistry.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.SystemDataTypeConverter.ConvertFrom);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -212,7 +212,7 @@ internal ProxyResource(global::System.Management.Automation.PSObject 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.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString();
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeAll)?.ToString();
public override string ToString()
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.TypeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.TypeConverter.cs
index 7b79408fa0..c19e701d8f 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.TypeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.TypeConverter.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// A PowerShell PSTypeConverter to support converting to an instance of
@@ -63,7 +63,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
@@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IProxyResource ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IProxyResource ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IProxyResource).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IProxyResource).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.cs
index ab18e3c97a..aa2e98c8c5 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.cs
@@ -1,80 +1,80 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Models.IProxyResource,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IProxyResourceInternal,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IValidates
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IProxyResource,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IProxyResourceInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IValidates
{
///
- /// Backing field for Inherited model
+ /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.Resource();
+ private Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.Resource();
///
/// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).Id; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Id; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Id = value; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Name = value; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemData = value; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Type = value; }
/// The name of the resource
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).Name; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Name; }
///
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- internal Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemData; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemData; }
/// The timestamp of resource creation (UTC).
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
/// The identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; }
/// The type of identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; }
/// The timestamp of resource last modification (UTC)
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
/// The identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; }
/// The type of identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inherited)]
- public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)__resource).Type; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)]
+ public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Type; }
/// Creates an new instance.
public ProxyResource()
@@ -83,12 +83,12 @@ public ProxyResource()
}
/// Validates that this object meets the validation criteria.
- /// an instance that will receive validation
+ /// 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.DeviceRegistry.Runtime.IEventListener eventListener)
+ public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener eventListener)
{
await eventListener.AssertNotNull(nameof(__resource), __resource);
await eventListener.AssertObjectIsValid(nameof(__resource), __resource);
@@ -96,14 +96,14 @@ public ProxyResource()
}
/// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
public partial interface IProxyResource :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResource
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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.DeviceRegistry.Models.IResourceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal
{
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.json.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.json.cs
index 27b587e968..c98e804d2b 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.json.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/ProxyResource.json.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
///
/// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
@@ -17,15 +17,15 @@ public partial class ProxyResource
///
/// The JsonNode that should be deserialized into this object.
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json);
+ partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container);
+ partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container);
///
/// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
@@ -38,7 +38,7 @@ public partial class ProxyResource
/// Determines if the rest of the deserialization should be processed, or if the method should return
/// instantly.
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow);
+ partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json, ref bool returnNow);
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
@@ -51,25 +51,25 @@ public partial class ProxyResource
/// 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.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow);
+ partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IProxyResource.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IProxyResource.
///
- /// a to deserialize from.
+ /// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IProxyResource.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IProxyResource.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new ProxyResource(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new ProxyResource(json) : null;
}
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject into a new instance of .
///
- /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from.
- internal ProxyResource(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ /// A Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject instance to deserialize from.
+ internal ProxyResource(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -77,22 +77,22 @@ internal ProxyResource(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime
{
return;
}
- __resource = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.Resource(json);
+ __resource = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.Resource(json);
AfterFromJson(json);
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
- /// The container to serialize this object into. If the caller
+ /// 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 .
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode)
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode serializationMode)
{
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject();
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject();
bool returnNow = false;
BeforeToJson(ref container, ref returnNow);
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.PowerShell.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.PowerShell.cs
index 607bd56f21..7fe95b06bc 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.PowerShell.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.PowerShell.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// Common fields that are returned in the response for all Azure Resource Manager resources
@@ -63,27 +63,27 @@ public partial class Resource
partial void OverrideToString(ref string stringResult, 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.DeviceRegistry.Models.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new Resource(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new Resource(content);
}
@@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResource
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.
@@ -111,49 +111,49 @@ internal Resource(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("SystemData"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.SystemDataTypeConverter.ConvertFrom);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -168,43 +168,43 @@ internal Resource(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("SystemData"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.SystemDataTypeConverter.ConvertFrom);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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);
}
@@ -212,7 +212,7 @@ internal Resource(global::System.Management.Automation.PSObject 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.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString();
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeAll)?.ToString();
public override string ToString()
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.TypeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.TypeConverter.cs
index b98608cffe..b5d1270475 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.TypeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.TypeConverter.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// A PowerShell PSTypeConverter to support converting to an instance of
@@ -62,7 +62,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
@@ -103,14 +103,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResource ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResource ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResource).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResource).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.cs
index 2dd81878a0..85996eb694 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.cs
@@ -1,16 +1,16 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
///
/// Common fields that are returned in the response for all Azure Resource Manager resources
///
public partial class Resource :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResource,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResource,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal
{
/// Backing field for property.
@@ -19,60 +19,60 @@ public partial class Resource :
///
/// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Id { get => this._id; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal.Id { get => this._id; set { {_id = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Id { get => this._id; set { {_id = value;} } }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal.Name { get => this._name; set { {_name = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Name { get => this._name; set { {_name = value;} } }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.SystemData()); set { {_systemData = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.SystemData()); set { {_systemData = value;} } }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } }
/// Backing field for property.
private string _name;
/// The name of the resource
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Name { get => this._name; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData _systemData;
+ private Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData _systemData;
///
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.SystemData()); }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.SystemData()); }
/// The timestamp of resource creation (UTC).
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
/// The identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
/// The type of identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
/// The timestamp of resource last modification (UTC)
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
/// The identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
/// The type of identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)]
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
/// Backing field for property.
private string _type;
@@ -80,7 +80,7 @@ public partial class Resource :
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string Type { get => this._type; }
/// Creates an new instance.
@@ -91,12 +91,12 @@ public Resource()
}
/// Common fields that are returned in the response for all Azure Resource Manager resources
public partial interface IResource :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable
{
///
/// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -107,7 +107,7 @@ public partial interface IResource :
PossibleTypes = new [] { typeof(string) })]
string Id { get; }
/// The name of the resource
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -118,7 +118,7 @@ public partial interface IResource :
PossibleTypes = new [] { typeof(string) })]
string Name { get; }
/// The timestamp of resource creation (UTC).
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -129,7 +129,7 @@ public partial interface IResource :
PossibleTypes = new [] { typeof(global::System.DateTime) })]
global::System.DateTime? SystemDataCreatedAt { get; }
/// The identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -140,7 +140,7 @@ public partial interface IResource :
PossibleTypes = new [] { typeof(string) })]
string SystemDataCreatedBy { get; }
/// The type of identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -149,10 +149,10 @@ public partial interface IResource :
Description = @"The type of identity that created the resource.",
SerializedName = @"createdByType",
PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
string SystemDataCreatedByType { get; }
/// The timestamp of resource last modification (UTC)
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -163,7 +163,7 @@ public partial interface IResource :
PossibleTypes = new [] { typeof(global::System.DateTime) })]
global::System.DateTime? SystemDataLastModifiedAt { get; }
/// The identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -174,7 +174,7 @@ public partial interface IResource :
PossibleTypes = new [] { typeof(string) })]
string SystemDataLastModifiedBy { get; }
/// The type of identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -183,12 +183,12 @@ public partial interface IResource :
Description = @"The type of identity that last modified the resource.",
SerializedName = @"lastModifiedByType",
PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
string SystemDataLastModifiedByType { get; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
///
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = true,
Read = true,
@@ -213,20 +213,20 @@ internal partial interface IResourceInternal
///
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData SystemData { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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.
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
string 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.
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
string SystemDataLastModifiedByType { get; set; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.json.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.json.cs
index 8c4923e68e..34796869ef 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.json.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/Resource.json.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
///
/// Common fields that are returned in the response for all Azure Resource Manager resources
@@ -17,15 +17,15 @@ public partial class Resource
///
/// The JsonNode that should be deserialized into this object.
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json);
+ partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container);
+ partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container);
///
/// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
@@ -38,7 +38,7 @@ public partial class Resource
/// Determines if the rest of the deserialization should be processed, or if the method should return
/// instantly.
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow);
+ partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json, ref bool returnNow);
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
@@ -51,25 +51,23 @@ public partial class Resource
/// 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.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow);
+ partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResource.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResource.
///
- /// a to deserialize from.
- ///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResource.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ /// a to deserialize from.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResource.
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new Resource(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new Resource(json) : null;
}
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject into a new instance of .
///
- /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from.
- internal Resource(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ /// A Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject instance to deserialize from.
+ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -77,25 +75,25 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
{
return;
}
- {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.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;}
+ {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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;}
AfterFromJson(json);
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
- /// The container to serialize this object into. If the caller
+ /// 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 .
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode)
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode serializationMode)
{
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject();
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject();
bool returnNow = false;
BeforeToJson(ref container, ref returnNow);
@@ -103,21 +101,21 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add );
+ AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
+ AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add );
+ AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeRead))
{
- AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add );
+ AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add );
}
AfterToJson(ref container);
return container;
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.PowerShell.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.PowerShell.cs
index d24a4a126c..28889725d8 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.PowerShell.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.PowerShell.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
/// Metadata pertaining to creation and last modification of the resource.
[System.ComponentModel.TypeConverter(typeof(SystemDataTypeConverter))]
@@ -61,27 +61,27 @@ public partial class SystemData
partial void OverrideToString(ref string stringResult, 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.DeviceRegistry.Models.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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.DeviceRegistry.Models.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new SystemData(content);
}
@@ -91,10 +91,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDa
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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,33 +109,33 @@ internal SystemData(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("CreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString);
}
if (content.Contains("CreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).CreatedByType = (string) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).CreatedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).CreatedByType = (string) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).CreatedByType, global::System.Convert.ToString);
}
if (content.Contains("CreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.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.EdgeZones.Models.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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.DeviceRegistry.Models.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("LastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).LastModifiedByType = (string) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).LastModifiedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).LastModifiedByType = (string) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).LastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("LastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.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.EdgeZones.Models.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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.
@@ -150,27 +150,27 @@ internal SystemData(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("CreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString);
}
if (content.Contains("CreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).CreatedByType = (string) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).CreatedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).CreatedByType = (string) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).CreatedByType, global::System.Convert.ToString);
}
if (content.Contains("CreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.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.EdgeZones.Models.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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.DeviceRegistry.Models.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("LastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).LastModifiedByType = (string) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).LastModifiedByType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).LastModifiedByType = (string) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)this).LastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("LastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.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.EdgeZones.Models.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.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);
}
@@ -178,7 +178,7 @@ internal SystemData(global::System.Management.Automation.PSObject 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.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString();
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode.IncludeAll)?.ToString();
public override string ToString()
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.TypeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.TypeConverter.cs
index 4fb7f9eab8..0bd9c582a5 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.TypeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.TypeConverter.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
///
/// A PowerShell PSTypeConverter to support converting to an instance of
@@ -62,7 +62,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
@@ -103,14 +103,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.cs
index 9c749479c9..c48a5376eb 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.cs
@@ -1,56 +1,56 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
/// Metadata pertaining to creation and last modification of the resource.
public partial class SystemData :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemDataInternal
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal
{
/// Backing field for property.
private global::System.DateTime? _createdAt;
/// The timestamp of resource creation (UTC).
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public global::System.DateTime? CreatedAt { get => this._createdAt; set => this._createdAt = value; }
/// Backing field for property.
private string _createdBy;
/// The identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string CreatedBy { get => this._createdBy; set => this._createdBy = value; }
/// Backing field for property.
private string _createdByType;
/// The type of identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string CreatedByType { get => this._createdByType; set => this._createdByType = value; }
/// Backing field for property.
private global::System.DateTime? _lastModifiedAt;
/// The timestamp of resource last modification (UTC)
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public global::System.DateTime? LastModifiedAt { get => this._lastModifiedAt; set => this._lastModifiedAt = value; }
/// Backing field for property.
private string _lastModifiedBy;
/// The identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string LastModifiedBy { get => this._lastModifiedBy; set => this._lastModifiedBy = value; }
/// Backing field for property.
private string _lastModifiedByType;
/// The type of identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Owned)]
public string LastModifiedByType { get => this._lastModifiedByType; set => this._lastModifiedByType = value; }
/// Creates an new instance.
@@ -61,10 +61,10 @@ public SystemData()
}
/// Metadata pertaining to creation and last modification of the resource.
public partial interface ISystemData :
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable
{
/// The timestamp of resource creation (UTC).
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = false,
Read = true,
@@ -75,7 +75,7 @@ public partial interface ISystemData :
PossibleTypes = new [] { typeof(global::System.DateTime) })]
global::System.DateTime? CreatedAt { get; set; }
/// The identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = false,
Read = true,
@@ -86,7 +86,7 @@ public partial interface ISystemData :
PossibleTypes = new [] { typeof(string) })]
string CreatedBy { get; set; }
/// The type of identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = false,
Read = true,
@@ -95,10 +95,10 @@ public partial interface ISystemData :
Description = @"The type of identity that created the resource.",
SerializedName = @"createdByType",
PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
string CreatedByType { get; set; }
/// The timestamp of resource last modification (UTC)
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = false,
Read = true,
@@ -109,7 +109,7 @@ public partial interface ISystemData :
PossibleTypes = new [] { typeof(global::System.DateTime) })]
global::System.DateTime? LastModifiedAt { get; set; }
/// The identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = false,
Read = true,
@@ -120,7 +120,7 @@ public partial interface ISystemData :
PossibleTypes = new [] { typeof(string) })]
string LastModifiedBy { get; set; }
/// The type of identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = false,
ReadOnly = false,
Read = true,
@@ -129,7 +129,7 @@ public partial interface ISystemData :
Description = @"The type of identity that last modified the resource.",
SerializedName = @"lastModifiedByType",
PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
string LastModifiedByType { get; set; }
}
@@ -142,14 +142,14 @@ internal partial interface ISystemDataInternal
/// The identity that created the resource.
string CreatedBy { get; set; }
/// The type of identity that created the resource.
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
string CreatedByType { get; set; }
/// The timestamp of resource last modification (UTC)
global::System.DateTime? LastModifiedAt { get; set; }
/// The identity that last modified the resource.
string LastModifiedBy { get; set; }
/// The type of identity that last modified the resource.
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
string LastModifiedByType { get; set; }
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.json.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.json.cs
index 7724dd7c93..b02e7cc2c3 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.json.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/api/Models/SystemData.json.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
/// Metadata pertaining to creation and last modification of the resource.
public partial class SystemData
@@ -15,15 +15,15 @@ public partial class SystemData
///
/// The JsonNode that should be deserialized into this object.
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json);
+ partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container);
+ partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container);
///
/// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
@@ -36,7 +36,7 @@ public partial class SystemData
/// Determines if the rest of the deserialization should be processed, or if the method should return
/// instantly.
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow);
+ partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json, ref bool returnNow);
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
@@ -49,25 +49,23 @@ public partial class SystemData
/// 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.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow);
+ partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData.
///
- /// a to deserialize from.
- ///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ /// a to deserialize from.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData.
+ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new SystemData(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new SystemData(json) : null;
}
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject into a new instance of .
///
- /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from.
- internal SystemData(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ /// A Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject instance to deserialize from.
+ internal SystemData(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -75,27 +73,27 @@ internal SystemData(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Js
{
return;
}
- {_createdBy = If( json?.PropertyT("createdBy"), out var __jsonCreatedBy) ? (string)__jsonCreatedBy : (string)_createdBy;}
- {_createdByType = If( json?.PropertyT("createdByType"), out var __jsonCreatedByType) ? (string)__jsonCreatedByType : (string)_createdByType;}
- {_createdAt = If( json?.PropertyT("createdAt"), out var __jsonCreatedAt) ? global::System.DateTime.TryParse((string)__jsonCreatedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedAtValue) ? __jsonCreatedAtValue : _createdAt : _createdAt;}
- {_lastModifiedBy = If( json?.PropertyT("lastModifiedBy"), out var __jsonLastModifiedBy) ? (string)__jsonLastModifiedBy : (string)_lastModifiedBy;}
- {_lastModifiedByType = If( json?.PropertyT("lastModifiedByType"), out var __jsonLastModifiedByType) ? (string)__jsonLastModifiedByType : (string)_lastModifiedByType;}
- {_lastModifiedAt = If( json?.PropertyT("lastModifiedAt"), out var __jsonLastModifiedAt) ? global::System.DateTime.TryParse((string)__jsonLastModifiedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastModifiedAtValue) ? __jsonLastModifiedAtValue : _lastModifiedAt : _lastModifiedAt;}
+ {_createdBy = If( json?.PropertyT("createdBy"), out var __jsonCreatedBy) ? (string)__jsonCreatedBy : (string)_createdBy;}
+ {_createdByType = If( json?.PropertyT("createdByType"), out var __jsonCreatedByType) ? (string)__jsonCreatedByType : (string)_createdByType;}
+ {_createdAt = If( json?.PropertyT("createdAt"), out var __jsonCreatedAt) ? global::System.DateTime.TryParse((string)__jsonCreatedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedAtValue) ? __jsonCreatedAtValue : _createdAt : _createdAt;}
+ {_lastModifiedBy = If( json?.PropertyT("lastModifiedBy"), out var __jsonLastModifiedBy) ? (string)__jsonLastModifiedBy : (string)_lastModifiedBy;}
+ {_lastModifiedByType = If( json?.PropertyT("lastModifiedByType"), out var __jsonLastModifiedByType) ? (string)__jsonLastModifiedByType : (string)_lastModifiedByType;}
+ {_lastModifiedAt = If( json?.PropertyT("lastModifiedAt"), out var __jsonLastModifiedAt) ? global::System.DateTime.TryParse((string)__jsonLastModifiedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastModifiedAtValue) ? __jsonLastModifiedAtValue : _lastModifiedAt : _lastModifiedAt;}
AfterFromJson(json);
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
- /// The container to serialize this object into. If the caller
+ /// 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 .
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode)
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SerializationMode serializationMode)
{
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject();
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject();
bool returnNow = false;
BeforeToJson(ref container, ref returnNow);
@@ -103,12 +101,12 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T
{
return container;
}
- AddIf( null != (((object)this._createdBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._createdBy.ToString()) : null, "createdBy" ,container.Add );
- AddIf( null != (((object)this._createdByType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._createdByType.ToString()) : null, "createdByType" ,container.Add );
- AddIf( null != this._createdAt ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._createdAt?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "createdAt" ,container.Add );
- AddIf( null != (((object)this._lastModifiedBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._lastModifiedBy.ToString()) : null, "lastModifiedBy" ,container.Add );
- AddIf( null != (((object)this._lastModifiedByType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._lastModifiedByType.ToString()) : null, "lastModifiedByType" ,container.Add );
- AddIf( null != this._lastModifiedAt ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._lastModifiedAt?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "lastModifiedAt" ,container.Add );
+ AddIf( null != (((object)this._createdBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._createdBy.ToString()) : null, "createdBy" ,container.Add );
+ AddIf( null != (((object)this._createdByType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._createdByType.ToString()) : null, "createdByType" ,container.Add );
+ AddIf( null != this._createdAt ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._createdAt?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "createdAt" ,container.Add );
+ AddIf( null != (((object)this._lastModifiedBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._lastModifiedBy.ToString()) : null, "lastModifiedBy" ,container.Add );
+ AddIf( null != (((object)this._lastModifiedByType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._lastModifiedByType.ToString()) : null, "lastModifiedByType" ,container.Add );
+ AddIf( null != this._lastModifiedAt ? (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonString(this._lastModifiedAt?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "lastModifiedAt" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzDeviceRegistryExtendedZone_Get.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzEdgeZonesExtendedZone_Get.cs
similarity index 68%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzDeviceRegistryExtendedZone_Get.cs
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzEdgeZonesExtendedZone_Get.cs
index 54e9b2bc8a..089e1e65be 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzDeviceRegistryExtendedZone_Get.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzEdgeZonesExtendedZone_Get.cs
@@ -1,25 +1,25 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Cmdlets
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Cmdlets;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Cmdlets;
using System;
/// Gets an Azure Extended Zone for a subscription
///
/// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}"
///
- [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDeviceRegistryExtendedZone_Get")]
- [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Gets an Azure Extended Zone for a subscription")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}", ApiVersion = "2024-04-01-preview")]
- public partial class GetAzDeviceRegistryExtendedZone_Get : global::System.Management.Automation.PSCmdlet,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext
+ [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzEdgeZonesExtendedZone_Get")]
+ [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone))]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Description(@"Gets an Azure Extended Zone for a subscription")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}", ApiVersion = "2024-04-01-preview")]
+ public partial class GetAzEdgeZonesExtendedZone_Get : global::System.Management.Automation.PSCmdlet,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IContext
{
/// A unique id generatd for the this cmdlet when it is instantiated.
private string __correlationId = System.Guid.NewGuid().ToString();
@@ -49,14 +49,14 @@ public partial class GetAzDeviceRegistryExtendedZone_Get : global::System.Manage
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter Break { get; set; }
/// Accessor for cancellationTokenSource.
public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } }
/// The reference to the client API class.
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.ClientAPI;
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.ClientAPI;
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -65,7 +65,7 @@ public partial class GetAzDeviceRegistryExtendedZone_Get : global::System.Manage
[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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Azure)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Azure)]
public global::System.Management.Automation.PSObject DefaultProfile { get; set; }
/// Accessor for extensibleParameters.
@@ -74,60 +74,60 @@ public partial class GetAzDeviceRegistryExtendedZone_Get : global::System.Manage
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.
+ /// cancellation delegate. Stops the cmdlet when called.
///
- global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
+ global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
- global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
+ /// cancellation token.
+ global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
/// Backing field for property.
private string _name;
/// The name of the ExtendedZone
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the ExtendedZone")]
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = true,
ReadOnly = false,
Description = @"The name of the ExtendedZone",
SerializedName = @"extendedZoneName",
PossibleTypes = new [] { typeof(string) })]
[global::System.Management.Automation.Alias("ExtendedZoneName")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Path)]
public string Name { get => this._name; set => this._name = value; }
///
- /// The instance of the that the remote call will use.
+ /// The instance of the that the remote call will use.
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline Pipeline { get; set; }
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; }
/// Backing field for property.
@@ -135,18 +135,18 @@ public partial class GetAzDeviceRegistryExtendedZone_Get : global::System.Manage
/// 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.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.DefaultInfo(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.DefaultInfo(
Name = @"",
Description =@"",
Script = @"(Get-AzContext).Subscription.Id",
SetCondition = @"")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Path)]
public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; }
///
@@ -154,31 +154,31 @@ public partial class GetAzDeviceRegistryExtendedZone_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.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
- partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
/// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
- partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
protected override void BeginProcessing()
{
- var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryId.Invoke();
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryId.Invoke();
if (telemetryId != "" && telemetryId != "internal")
{
__correlationId = telemetryId;
@@ -186,9 +186,9 @@ protected override void BeginProcessing()
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.AttachDebugger.Break();
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.AttachDebugger.Break();
}
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
/// Performs clean-up after the command execution
@@ -199,7 +199,7 @@ protected override void EndProcessing()
// Flush buffer
WriteObject(_firstResponse);
}
- var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
+ var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
@@ -220,9 +220,9 @@ protected override void EndProcessing()
}
///
- /// Initializes a new instance of the cmdlet class.
+ /// Initializes a new instance of the cmdlet class.
///
- public GetAzDeviceRegistryExtendedZone_Get()
+ public GetAzEdgeZonesExtendedZone_Get()
{
}
@@ -234,7 +234,7 @@ public GetAzDeviceRegistryExtendedZone_Get()
///
/// A that will be complete when handling of the message is completed.
///
- async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
+ async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
{
using( NoSynchronizationContext )
{
@@ -245,33 +245,33 @@ public GetAzDeviceRegistryExtendedZone_Get()
switch ( id )
{
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Verbose:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Verbose:
{
WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Warning:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Warning:
{
WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Information:
{
var data = messageData();
WriteInformation(data.Message, new string[]{});
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Debug:
{
WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Error:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Events.Progress:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress:
{
var data = messageData();
int progress = (int)data.Value;
@@ -297,7 +297,7 @@ public GetAzDeviceRegistryExtendedZone_Get()
return ;
}
}
- await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
+ await Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
if (token.IsCancellationRequested)
{
return ;
@@ -309,14 +309,14 @@ public GetAzDeviceRegistryExtendedZone_Get()
/// Performs execution of the command.
protected override void ProcessRecord()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
__processRecordId = System.Guid.NewGuid().ToString();
try
{
// work
- using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) )
+ using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token) )
{
- asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token);
+ asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token);
}
}
catch (global::System.AggregateException aggregateException)
@@ -324,20 +324,20 @@ protected override void ProcessRecord()
// unroll the inner exceptions to get the root cause
foreach( var innerException in aggregateException.Flatten().InnerExceptions )
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordEnd).Wait();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordEnd).Wait();
}
}
@@ -349,27 +349,27 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
if (null != HttpPipelinePrepend)
{
- Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
+ Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
}
if (null != HttpPipelineAppend)
{
- Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
+ Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
}
// get the client instance
try
{
foreach( var SubscriptionId in this.SubscriptionId )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await this.Client.ExtendedZonesGet(SubscriptionId, Name, onOk, onDefault, this, Pipeline);
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
}
- catch (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.UndeclaredResponseException urexception)
+ catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.UndeclaredResponseException urexception)
{
WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Name=Name})
{
@@ -378,7 +378,7 @@ protected override void ProcessRecord()
}
finally
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordAsyncEnd);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordAsyncEnd);
}
}
}
@@ -386,14 +386,14 @@ protected override void ProcessRecord()
/// Interrupts currently running code within the command.
protected override void StopProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Cancel();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Cancel();
base.StopProcessing();
}
///
new protected void WriteObject(object sendToPipeline)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline);
}
@@ -401,7 +401,7 @@ protected override void StopProcessing()
///
new protected void WriteObject(object sendToPipeline, bool enumerateCollection)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline, enumerateCollection);
}
@@ -409,12 +409,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.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
- private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
+ private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
{
using( NoSynchronizationContext )
{
@@ -431,7 +431,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.DeviceRegistry.Runtime.RestException(responseMessage, await response);
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 }
@@ -449,12 +449,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.DeviceRegistry.Models.IExtendedZone
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
/// 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 )
{
@@ -466,7 +466,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 / application/json
- // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone
+ // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
var result = (await response);
if (null != result)
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzDeviceRegistryExtendedZone_GetViaIdentity.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzEdgeZonesExtendedZone_GetViaIdentity.cs
similarity index 67%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzDeviceRegistryExtendedZone_GetViaIdentity.cs
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzEdgeZonesExtendedZone_GetViaIdentity.cs
index 9d6a36b98f..7d071235ae 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzDeviceRegistryExtendedZone_GetViaIdentity.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzEdgeZonesExtendedZone_GetViaIdentity.cs
@@ -1,25 +1,25 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Cmdlets
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Cmdlets;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Cmdlets;
using System;
/// Gets an Azure Extended Zone for a subscription
///
/// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}"
///
- [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDeviceRegistryExtendedZone_GetViaIdentity")]
- [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Gets an Azure Extended Zone for a subscription")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}", ApiVersion = "2024-04-01-preview")]
- public partial class GetAzDeviceRegistryExtendedZone_GetViaIdentity : global::System.Management.Automation.PSCmdlet,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext
+ [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzEdgeZonesExtendedZone_GetViaIdentity")]
+ [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone))]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Description(@"Gets an Azure Extended Zone for a subscription")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}", ApiVersion = "2024-04-01-preview")]
+ public partial class GetAzEdgeZonesExtendedZone_GetViaIdentity : global::System.Management.Automation.PSCmdlet,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IContext
{
/// A unique id generatd for the this cmdlet when it is instantiated.
private string __correlationId = System.Guid.NewGuid().ToString();
@@ -49,14 +49,14 @@ public partial class GetAzDeviceRegistryExtendedZone_GetViaIdentity : global::Sy
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter Break { get; set; }
/// Accessor for cancellationTokenSource.
public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } }
/// The reference to the client API class.
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.ClientAPI;
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.ClientAPI;
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -65,7 +65,7 @@ public partial class GetAzDeviceRegistryExtendedZone_GetViaIdentity : global::Sy
[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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Azure)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Azure)]
public global::System.Management.Automation.PSObject DefaultProfile { get; set; }
/// Accessor for extensibleParameters.
@@ -74,53 +74,53 @@ public partial class GetAzDeviceRegistryExtendedZone_GetViaIdentity : global::Sy
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentity _inputObject;
+ private Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity _inputObject;
/// Identity Parameter
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentity InputObject { get => this._inputObject; set => this._inputObject = value; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Path)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity 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.
+ /// cancellation delegate. Stops the cmdlet when called.
///
- global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
+ global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
- global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
+ /// cancellation token.
+ global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
///
- /// The instance of the that the remote call will use.
+ /// The instance of the that the remote call will use.
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline Pipeline { get; set; }
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; }
///
@@ -128,31 +128,31 @@ public partial class GetAzDeviceRegistryExtendedZone_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.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
- partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
/// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
- partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
protected override void BeginProcessing()
{
- var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryId.Invoke();
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryId.Invoke();
if (telemetryId != "" && telemetryId != "internal")
{
__correlationId = telemetryId;
@@ -160,9 +160,9 @@ protected override void BeginProcessing()
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.AttachDebugger.Break();
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.AttachDebugger.Break();
}
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
/// Performs clean-up after the command execution
@@ -173,7 +173,7 @@ protected override void EndProcessing()
// Flush buffer
WriteObject(_firstResponse);
}
- var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
+ var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
@@ -194,9 +194,9 @@ protected override void EndProcessing()
}
///
- /// Initializes a new instance of the cmdlet class.
+ /// Initializes a new instance of the cmdlet class.
///
- public GetAzDeviceRegistryExtendedZone_GetViaIdentity()
+ public GetAzEdgeZonesExtendedZone_GetViaIdentity()
{
}
@@ -208,7 +208,7 @@ public GetAzDeviceRegistryExtendedZone_GetViaIdentity()
///
/// A that will be complete when handling of the message is completed.
///
- async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
+ async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
{
using( NoSynchronizationContext )
{
@@ -219,33 +219,33 @@ public GetAzDeviceRegistryExtendedZone_GetViaIdentity()
switch ( id )
{
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Verbose:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Verbose:
{
WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Warning:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Warning:
{
WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Information:
{
var data = messageData();
WriteInformation(data.Message, new string[]{});
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Debug:
{
WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Error:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Events.Progress:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress:
{
var data = messageData();
int progress = (int)data.Value;
@@ -271,7 +271,7 @@ public GetAzDeviceRegistryExtendedZone_GetViaIdentity()
return ;
}
}
- await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
+ await Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
if (token.IsCancellationRequested)
{
return ;
@@ -283,14 +283,14 @@ public GetAzDeviceRegistryExtendedZone_GetViaIdentity()
/// Performs execution of the command.
protected override void ProcessRecord()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
__processRecordId = System.Guid.NewGuid().ToString();
try
{
// work
- using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) )
+ using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token) )
{
- asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token);
+ asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token);
}
}
catch (global::System.AggregateException aggregateException)
@@ -298,20 +298,20 @@ protected override void ProcessRecord()
// unroll the inner exceptions to get the root cause
foreach( var innerException in aggregateException.Flatten().InnerExceptions )
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordEnd).Wait();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordEnd).Wait();
}
}
@@ -323,20 +323,20 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
if (null != HttpPipelinePrepend)
{
- Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
+ Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
}
if (null != HttpPipelineAppend)
{
- Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
+ Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
}
// get the client instance
try
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
await this.Client.ExtendedZonesGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline);
@@ -354,9 +354,9 @@ protected override void ProcessRecord()
}
await this.Client.ExtendedZonesGet(InputObject.SubscriptionId ?? null, InputObject.ExtendedZoneName ?? null, onOk, onDefault, this, Pipeline);
}
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
- catch (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.UndeclaredResponseException urexception)
+ catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.UndeclaredResponseException urexception)
{
WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { })
{
@@ -365,7 +365,7 @@ protected override void ProcessRecord()
}
finally
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordAsyncEnd);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordAsyncEnd);
}
}
}
@@ -373,14 +373,14 @@ protected override void ProcessRecord()
/// Interrupts currently running code within the command.
protected override void StopProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Cancel();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Cancel();
base.StopProcessing();
}
///
new protected void WriteObject(object sendToPipeline)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline);
}
@@ -388,7 +388,7 @@ protected override void StopProcessing()
///
new protected void WriteObject(object sendToPipeline, bool enumerateCollection)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline, enumerateCollection);
}
@@ -396,12 +396,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.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
- private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
+ private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
{
using( NoSynchronizationContext )
{
@@ -418,7 +418,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.DeviceRegistry.Runtime.RestException(responseMessage, await response);
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 }
@@ -436,12 +436,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.DeviceRegistry.Models.IExtendedZone
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
/// 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 )
{
@@ -453,7 +453,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 / application/json
- // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone
+ // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
var result = (await response);
if (null != result)
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzDeviceRegistryExtendedZone_List.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzEdgeZonesExtendedZone_List.cs
similarity index 68%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzDeviceRegistryExtendedZone_List.cs
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzEdgeZonesExtendedZone_List.cs
index f9b0259acc..e1f49902e6 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzDeviceRegistryExtendedZone_List.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzEdgeZonesExtendedZone_List.cs
@@ -1,25 +1,25 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Cmdlets
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Cmdlets;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Cmdlets;
using System;
/// Lists the Azure Extended Zones available to a subscription
///
/// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones"
///
- [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDeviceRegistryExtendedZone_List")]
- [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Lists the Azure Extended Zones available to a subscription")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones", ApiVersion = "2024-04-01-preview")]
- public partial class GetAzDeviceRegistryExtendedZone_List : global::System.Management.Automation.PSCmdlet,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext
+ [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzEdgeZonesExtendedZone_List")]
+ [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone))]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Description(@"Lists the Azure Extended Zones available to a subscription")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones", ApiVersion = "2024-04-01-preview")]
+ public partial class GetAzEdgeZonesExtendedZone_List : global::System.Management.Automation.PSCmdlet,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IContext
{
/// A unique id generatd for the this cmdlet when it is instantiated.
private string __correlationId = System.Guid.NewGuid().ToString();
@@ -55,14 +55,14 @@ public partial class GetAzDeviceRegistryExtendedZone_List : global::System.Manag
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter Break { get; set; }
/// Accessor for cancellationTokenSource.
public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } }
/// The reference to the client API class.
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.ClientAPI;
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.ClientAPI;
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -71,7 +71,7 @@ public partial class GetAzDeviceRegistryExtendedZone_List : global::System.Manag
[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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Azure)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Azure)]
public global::System.Management.Automation.PSObject DefaultProfile { get; set; }
/// Accessor for extensibleParameters.
@@ -80,45 +80,45 @@ public partial class GetAzDeviceRegistryExtendedZone_List : global::System.Manag
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.
+ /// cancellation delegate. Stops the cmdlet when called.
///
- global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
+ global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
- global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
+ /// cancellation token.
+ global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
///
- /// The instance of the that the remote call will use.
+ /// The instance of the that the remote call will use.
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline Pipeline { get; set; }
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; }
/// Backing field for property.
@@ -126,18 +126,18 @@ public partial class GetAzDeviceRegistryExtendedZone_List : global::System.Manag
/// 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.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.DefaultInfo(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.DefaultInfo(
Name = @"",
Description =@"",
Script = @"(Get-AzContext).Subscription.Id",
SetCondition = @"")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Path)]
public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; }
///
@@ -145,31 +145,31 @@ public partial class GetAzDeviceRegistryExtendedZone_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.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
- partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResult
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResult
/// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
- partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
protected override void BeginProcessing()
{
- var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryId.Invoke();
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryId.Invoke();
if (telemetryId != "" && telemetryId != "internal")
{
__correlationId = telemetryId;
@@ -177,9 +177,9 @@ protected override void BeginProcessing()
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.AttachDebugger.Break();
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.AttachDebugger.Break();
}
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
/// Performs clean-up after the command execution
@@ -190,7 +190,7 @@ protected override void EndProcessing()
// Flush buffer
WriteObject(_firstResponse);
}
- var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
+ var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
@@ -211,9 +211,9 @@ protected override void EndProcessing()
}
///
- /// Initializes a new instance of the cmdlet class.
+ /// Initializes a new instance of the cmdlet class.
///
- public GetAzDeviceRegistryExtendedZone_List()
+ public GetAzEdgeZonesExtendedZone_List()
{
}
@@ -225,7 +225,7 @@ public GetAzDeviceRegistryExtendedZone_List()
///
/// A that will be complete when handling of the message is completed.
///
- async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
+ async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
{
using( NoSynchronizationContext )
{
@@ -236,33 +236,33 @@ public GetAzDeviceRegistryExtendedZone_List()
switch ( id )
{
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Verbose:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Verbose:
{
WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Warning:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Warning:
{
WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Information:
{
var data = messageData();
WriteInformation(data.Message, new string[]{});
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Debug:
{
WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Error:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Events.Progress:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress:
{
var data = messageData();
int progress = (int)data.Value;
@@ -288,7 +288,7 @@ public GetAzDeviceRegistryExtendedZone_List()
return ;
}
}
- await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
+ await Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
if (token.IsCancellationRequested)
{
return ;
@@ -300,14 +300,14 @@ public GetAzDeviceRegistryExtendedZone_List()
/// Performs execution of the command.
protected override void ProcessRecord()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
__processRecordId = System.Guid.NewGuid().ToString();
try
{
// work
- using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) )
+ using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token) )
{
- asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token);
+ asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token);
}
}
catch (global::System.AggregateException aggregateException)
@@ -315,20 +315,20 @@ protected override void ProcessRecord()
// unroll the inner exceptions to get the root cause
foreach( var innerException in aggregateException.Flatten().InnerExceptions )
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordEnd).Wait();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordEnd).Wait();
}
}
@@ -340,27 +340,27 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
if (null != HttpPipelinePrepend)
{
- Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
+ Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
}
if (null != HttpPipelineAppend)
{
- Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
+ Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
}
// get the client instance
try
{
foreach( var SubscriptionId in this.SubscriptionId )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await this.Client.ExtendedZonesListBySubscription(SubscriptionId, onOk, onDefault, this, Pipeline);
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
}
- catch (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.UndeclaredResponseException urexception)
+ catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.UndeclaredResponseException urexception)
{
WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId})
{
@@ -369,7 +369,7 @@ protected override void ProcessRecord()
}
finally
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordAsyncEnd);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordAsyncEnd);
}
}
}
@@ -377,14 +377,14 @@ protected override void ProcessRecord()
/// Interrupts currently running code within the command.
protected override void StopProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Cancel();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Cancel();
base.StopProcessing();
}
///
new protected void WriteObject(object sendToPipeline)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline);
}
@@ -392,7 +392,7 @@ protected override void StopProcessing()
///
new protected void WriteObject(object sendToPipeline, bool enumerateCollection)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline, enumerateCollection);
}
@@ -400,12 +400,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.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
- private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
+ private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
{
using( NoSynchronizationContext )
{
@@ -422,7 +422,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.DeviceRegistry.Runtime.RestException(responseMessage, await response);
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 }
@@ -440,12 +440,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.DeviceRegistry.Models.IExtendedZoneListResult
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResult
/// 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 )
{
@@ -457,7 +457,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 / application/json
- // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZoneListResult
+ // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneListResult
var result = (await response);
// response should be returning an array of some kind. +Pageable
// pageable / value / nextLink
@@ -492,8 +492,8 @@ protected override void StopProcessing()
{
if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage )
{
- requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Method.Get );
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Get );
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await this.Client.ExtendedZonesListBySubscription_Call(requestMessage, onOk, onDefault, this, Pipeline);
}
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzDeviceRegistryOperation_List.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzEdgeZonesOperation_List.cs
similarity index 67%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzDeviceRegistryOperation_List.cs
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzEdgeZonesOperation_List.cs
index 7e1fb1612f..148fbede92 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzDeviceRegistryOperation_List.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/GetAzEdgeZonesOperation_List.cs
@@ -1,26 +1,26 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Cmdlets
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Cmdlets;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Cmdlets;
using System;
/// List the operations for the provider
///
/// [OpenAPI] List=>GET:"/providers/Microsoft.EdgeZones/operations"
///
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.InternalExport]
- [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDeviceRegistryOperation_List")]
- [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperation))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List the operations for the provider")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/providers/Microsoft.EdgeZones/operations", ApiVersion = "2024-04-01-preview")]
- public partial class GetAzDeviceRegistryOperation_List : global::System.Management.Automation.PSCmdlet,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.InternalExport]
+ [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzEdgeZonesOperation_List")]
+ [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperation))]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Description(@"List the operations for the provider")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.HttpPath(Path = "/providers/Microsoft.EdgeZones/operations", ApiVersion = "2024-04-01-preview")]
+ public partial class GetAzEdgeZonesOperation_List : global::System.Management.Automation.PSCmdlet,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IContext
{
/// A unique id generatd for the this cmdlet when it is instantiated.
private string __correlationId = System.Guid.NewGuid().ToString();
@@ -56,14 +56,14 @@ public partial class GetAzDeviceRegistryOperation_List : global::System.Manageme
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter Break { get; set; }
/// Accessor for cancellationTokenSource.
public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } }
/// The reference to the client API class.
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.ClientAPI;
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.ClientAPI;
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -72,7 +72,7 @@ public partial class GetAzDeviceRegistryOperation_List : global::System.Manageme
[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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Azure)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Azure)]
public global::System.Management.Automation.PSObject DefaultProfile { get; set; }
/// Accessor for extensibleParameters.
@@ -81,45 +81,45 @@ public partial class GetAzDeviceRegistryOperation_List : global::System.Manageme
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.
+ /// cancellation delegate. Stops the cmdlet when called.
///
- global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
+ global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
- global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
+ /// cancellation token.
+ global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
///
- /// The instance of the that the remote call will use.
+ /// The instance of the that the remote call will use.
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline Pipeline { get; set; }
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; }
///
@@ -127,31 +127,31 @@ public partial class GetAzDeviceRegistryOperation_List : global::System.Manageme
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
- partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResult
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResult
/// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
- partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
protected override void BeginProcessing()
{
- var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryId.Invoke();
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryId.Invoke();
if (telemetryId != "" && telemetryId != "internal")
{
__correlationId = telemetryId;
@@ -159,9 +159,9 @@ protected override void BeginProcessing()
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.AttachDebugger.Break();
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.AttachDebugger.Break();
}
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
/// Performs clean-up after the command execution
@@ -172,7 +172,7 @@ protected override void EndProcessing()
// Flush buffer
WriteObject(_firstResponse);
}
- var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
+ var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
@@ -193,9 +193,9 @@ protected override void EndProcessing()
}
///
- /// Initializes a new instance of the cmdlet class.
+ /// Initializes a new instance of the cmdlet class.
///
- public GetAzDeviceRegistryOperation_List()
+ public GetAzEdgeZonesOperation_List()
{
}
@@ -207,7 +207,7 @@ public GetAzDeviceRegistryOperation_List()
///
/// A that will be complete when handling of the message is completed.
///
- async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
+ async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
{
using( NoSynchronizationContext )
{
@@ -218,33 +218,33 @@ public GetAzDeviceRegistryOperation_List()
switch ( id )
{
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Verbose:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Verbose:
{
WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Warning:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Warning:
{
WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Information:
{
var data = messageData();
WriteInformation(data.Message, new string[]{});
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Debug:
{
WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Error:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Events.Progress:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress:
{
var data = messageData();
int progress = (int)data.Value;
@@ -270,7 +270,7 @@ public GetAzDeviceRegistryOperation_List()
return ;
}
}
- await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
+ await Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
if (token.IsCancellationRequested)
{
return ;
@@ -282,14 +282,14 @@ public GetAzDeviceRegistryOperation_List()
/// Performs execution of the command.
protected override void ProcessRecord()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
__processRecordId = System.Guid.NewGuid().ToString();
try
{
// work
- using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) )
+ using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token) )
{
- asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token);
+ asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token);
}
}
catch (global::System.AggregateException aggregateException)
@@ -297,20 +297,20 @@ protected override void ProcessRecord()
// unroll the inner exceptions to get the root cause
foreach( var innerException in aggregateException.Flatten().InnerExceptions )
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordEnd).Wait();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordEnd).Wait();
}
}
@@ -322,24 +322,24 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
if (null != HttpPipelinePrepend)
{
- Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
+ Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
}
if (null != HttpPipelineAppend)
{
- Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
+ Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
}
// get the client instance
try
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await this.Client.OperationsList(onOk, onDefault, this, Pipeline);
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
- catch (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.UndeclaredResponseException urexception)
+ catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.UndeclaredResponseException urexception)
{
WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { })
{
@@ -348,7 +348,7 @@ protected override void ProcessRecord()
}
finally
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordAsyncEnd);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordAsyncEnd);
}
}
}
@@ -356,14 +356,14 @@ protected override void ProcessRecord()
/// Interrupts currently running code within the command.
protected override void StopProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Cancel();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Cancel();
base.StopProcessing();
}
///
new protected void WriteObject(object sendToPipeline)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline);
}
@@ -371,7 +371,7 @@ protected override void StopProcessing()
///
new protected void WriteObject(object sendToPipeline, bool enumerateCollection)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline, enumerateCollection);
}
@@ -379,12 +379,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.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
- private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
+ private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
{
using( NoSynchronizationContext )
{
@@ -401,7 +401,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.DeviceRegistry.Runtime.RestException(responseMessage, await response);
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 }
@@ -419,12 +419,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.DeviceRegistry.Models.IOperationListResult
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResult
/// 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 )
{
@@ -436,7 +436,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 / application/json
- // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperationListResult
+ // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationListResult
var result = (await response);
// response should be returning an array of some kind. +Pageable
// pageable / value / nextLink
@@ -471,8 +471,8 @@ protected override void StopProcessing()
{
if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage )
{
- requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Method.Get );
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Method.Get );
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await this.Client.OperationsList_Call(requestMessage, onOk, onDefault, this, Pipeline);
}
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/RegisterAzDeviceRegistryExtendedZone_Register.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/RegisterAzEdgeZonesExtendedZone_Register.cs
similarity index 67%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/RegisterAzDeviceRegistryExtendedZone_Register.cs
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/RegisterAzEdgeZonesExtendedZone_Register.cs
index eb785f77dd..69953b2572 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/RegisterAzDeviceRegistryExtendedZone_Register.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/RegisterAzEdgeZonesExtendedZone_Register.cs
@@ -1,25 +1,25 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Cmdlets
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Cmdlets;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Cmdlets;
using System;
/// Registers a subscription for an Extended Zone
///
/// [OpenAPI] Register=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/register"
///
- [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Register, @"AzDeviceRegistryExtendedZone_Register", SupportsShouldProcess = true)]
- [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Registers a subscription for an Extended Zone")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/register", ApiVersion = "2024-04-01-preview")]
- public partial class RegisterAzDeviceRegistryExtendedZone_Register : global::System.Management.Automation.PSCmdlet,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext
+ [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Register, @"AzEdgeZonesExtendedZone_Register", SupportsShouldProcess = true)]
+ [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone))]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Description(@"Registers a subscription for an Extended Zone")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/register", ApiVersion = "2024-04-01-preview")]
+ public partial class RegisterAzEdgeZonesExtendedZone_Register : global::System.Management.Automation.PSCmdlet,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IContext
{
/// A unique id generatd for the this cmdlet when it is instantiated.
private string __correlationId = System.Guid.NewGuid().ToString();
@@ -49,14 +49,14 @@ public partial class RegisterAzDeviceRegistryExtendedZone_Register : global::Sys
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter Break { get; set; }
/// Accessor for cancellationTokenSource.
public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } }
/// The reference to the client API class.
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.ClientAPI;
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.ClientAPI;
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -65,7 +65,7 @@ public partial class RegisterAzDeviceRegistryExtendedZone_Register : global::Sys
[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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Azure)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Azure)]
public global::System.Management.Automation.PSObject DefaultProfile { get; set; }
/// Accessor for extensibleParameters.
@@ -74,60 +74,60 @@ public partial class RegisterAzDeviceRegistryExtendedZone_Register : global::Sys
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.
+ /// cancellation delegate. Stops the cmdlet when called.
///
- global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
+ global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
- global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
+ /// cancellation token.
+ global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
/// Backing field for property.
private string _name;
/// The name of the ExtendedZone
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the ExtendedZone")]
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = true,
ReadOnly = false,
Description = @"The name of the ExtendedZone",
SerializedName = @"extendedZoneName",
PossibleTypes = new [] { typeof(string) })]
[global::System.Management.Automation.Alias("ExtendedZoneName")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Path)]
public string Name { get => this._name; set => this._name = value; }
///
- /// The instance of the that the remote call will use.
+ /// The instance of the that the remote call will use.
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline Pipeline { get; set; }
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; }
/// Backing field for property.
@@ -135,18 +135,18 @@ public partial class RegisterAzDeviceRegistryExtendedZone_Register : global::Sys
/// 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.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.DefaultInfo(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.DefaultInfo(
Name = @"",
Description =@"",
Script = @"(Get-AzContext).Subscription.Id",
SetCondition = @"")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Path)]
public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; }
///
@@ -154,31 +154,31 @@ public partial class RegisterAzDeviceRegistryExtendedZone_Register : global::Sys
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
- partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
/// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
- partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
protected override void BeginProcessing()
{
- var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryId.Invoke();
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryId.Invoke();
if (telemetryId != "" && telemetryId != "internal")
{
__correlationId = telemetryId;
@@ -186,9 +186,9 @@ protected override void BeginProcessing()
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.AttachDebugger.Break();
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.AttachDebugger.Break();
}
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
/// Performs clean-up after the command execution
@@ -199,7 +199,7 @@ protected override void EndProcessing()
// Flush buffer
WriteObject(_firstResponse);
}
- var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
+ var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
@@ -226,7 +226,7 @@ protected override void EndProcessing()
///
/// A that will be complete when handling of the message is completed.
///
- async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
+ async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
{
using( NoSynchronizationContext )
{
@@ -237,33 +237,33 @@ protected override void EndProcessing()
switch ( id )
{
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Verbose:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Verbose:
{
WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Warning:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Warning:
{
WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Information:
{
var data = messageData();
WriteInformation(data.Message, new string[]{});
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Debug:
{
WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Error:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Events.Progress:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress:
{
var data = messageData();
int progress = (int)data.Value;
@@ -289,7 +289,7 @@ protected override void EndProcessing()
return ;
}
}
- await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
+ await Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
if (token.IsCancellationRequested)
{
return ;
@@ -301,16 +301,16 @@ protected override void EndProcessing()
/// Performs execution of the command.
protected override void ProcessRecord()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
__processRecordId = System.Guid.NewGuid().ToString();
try
{
// work
if (ShouldProcess($"Call remote 'ExtendedZonesRegister' operation"))
{
- using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) )
+ using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token) )
{
- asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token);
+ asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token);
}
}
}
@@ -319,20 +319,20 @@ protected override void ProcessRecord()
// unroll the inner exceptions to get the root cause
foreach( var innerException in aggregateException.Flatten().InnerExceptions )
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordEnd).Wait();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordEnd).Wait();
}
}
@@ -344,24 +344,24 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
if (null != HttpPipelinePrepend)
{
- Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
+ Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
}
if (null != HttpPipelineAppend)
{
- Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
+ Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
}
// get the client instance
try
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await this.Client.ExtendedZonesRegister(SubscriptionId, Name, onOk, onDefault, this, Pipeline);
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
- catch (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.UndeclaredResponseException urexception)
+ catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.UndeclaredResponseException urexception)
{
WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Name=Name})
{
@@ -370,15 +370,15 @@ protected override void ProcessRecord()
}
finally
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordAsyncEnd);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordAsyncEnd);
}
}
}
///
- /// Initializes a new instance of the cmdlet class.
+ /// Initializes a new instance of the cmdlet class.
///
- public RegisterAzDeviceRegistryExtendedZone_Register()
+ public RegisterAzEdgeZonesExtendedZone_Register()
{
}
@@ -386,14 +386,14 @@ public RegisterAzDeviceRegistryExtendedZone_Register()
/// Interrupts currently running code within the command.
protected override void StopProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Cancel();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Cancel();
base.StopProcessing();
}
///
new protected void WriteObject(object sendToPipeline)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline);
}
@@ -401,7 +401,7 @@ protected override void StopProcessing()
///
new protected void WriteObject(object sendToPipeline, bool enumerateCollection)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline, enumerateCollection);
}
@@ -409,12 +409,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.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
- private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
+ private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
{
using( NoSynchronizationContext )
{
@@ -431,7 +431,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.DeviceRegistry.Runtime.RestException(responseMessage, await response);
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 }
@@ -449,12 +449,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.DeviceRegistry.Models.IExtendedZone
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
/// 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 )
{
@@ -466,7 +466,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 / application/json
- // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone
+ // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
var result = (await response);
if (null != result)
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/RegisterAzDeviceRegistryExtendedZone_RegisterViaIdentity.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/RegisterAzEdgeZonesExtendedZone_RegisterViaIdentity.cs
similarity index 67%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/RegisterAzDeviceRegistryExtendedZone_RegisterViaIdentity.cs
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/RegisterAzEdgeZonesExtendedZone_RegisterViaIdentity.cs
index cf83029e92..e3a05948a7 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/RegisterAzDeviceRegistryExtendedZone_RegisterViaIdentity.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/RegisterAzEdgeZonesExtendedZone_RegisterViaIdentity.cs
@@ -1,25 +1,25 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Cmdlets
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Cmdlets;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Cmdlets;
using System;
/// Registers a subscription for an Extended Zone
///
/// [OpenAPI] Register=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/register"
///
- [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Register, @"AzDeviceRegistryExtendedZone_RegisterViaIdentity", SupportsShouldProcess = true)]
- [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Registers a subscription for an Extended Zone")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/register", ApiVersion = "2024-04-01-preview")]
- public partial class RegisterAzDeviceRegistryExtendedZone_RegisterViaIdentity : global::System.Management.Automation.PSCmdlet,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext
+ [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Register, @"AzEdgeZonesExtendedZone_RegisterViaIdentity", SupportsShouldProcess = true)]
+ [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone))]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Description(@"Registers a subscription for an Extended Zone")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/register", ApiVersion = "2024-04-01-preview")]
+ public partial class RegisterAzEdgeZonesExtendedZone_RegisterViaIdentity : global::System.Management.Automation.PSCmdlet,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IContext
{
/// A unique id generatd for the this cmdlet when it is instantiated.
private string __correlationId = System.Guid.NewGuid().ToString();
@@ -49,14 +49,14 @@ public partial class RegisterAzDeviceRegistryExtendedZone_RegisterViaIdentity :
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter Break { get; set; }
/// Accessor for cancellationTokenSource.
public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } }
/// The reference to the client API class.
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.ClientAPI;
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.ClientAPI;
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -65,7 +65,7 @@ public partial class RegisterAzDeviceRegistryExtendedZone_RegisterViaIdentity :
[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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Azure)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Azure)]
public global::System.Management.Automation.PSObject DefaultProfile { get; set; }
/// Accessor for extensibleParameters.
@@ -74,53 +74,53 @@ public partial class RegisterAzDeviceRegistryExtendedZone_RegisterViaIdentity :
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentity _inputObject;
+ private Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity _inputObject;
/// Identity Parameter
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentity InputObject { get => this._inputObject; set => this._inputObject = value; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Path)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity 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.
+ /// cancellation delegate. Stops the cmdlet when called.
///
- global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
+ global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
- global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
+ /// cancellation token.
+ global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
///
- /// The instance of the that the remote call will use.
+ /// The instance of the that the remote call will use.
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline Pipeline { get; set; }
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; }
///
@@ -128,31 +128,31 @@ public partial class RegisterAzDeviceRegistryExtendedZone_RegisterViaIdentity :
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
- partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
/// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
- partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
protected override void BeginProcessing()
{
- var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryId.Invoke();
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryId.Invoke();
if (telemetryId != "" && telemetryId != "internal")
{
__correlationId = telemetryId;
@@ -160,9 +160,9 @@ protected override void BeginProcessing()
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.AttachDebugger.Break();
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.AttachDebugger.Break();
}
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
/// Performs clean-up after the command execution
@@ -173,7 +173,7 @@ protected override void EndProcessing()
// Flush buffer
WriteObject(_firstResponse);
}
- var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
+ var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
@@ -200,7 +200,7 @@ protected override void EndProcessing()
///
/// A that will be complete when handling of the message is completed.
///
- async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
+ async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
{
using( NoSynchronizationContext )
{
@@ -211,33 +211,33 @@ protected override void EndProcessing()
switch ( id )
{
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Verbose:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Verbose:
{
WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Warning:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Warning:
{
WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Information:
{
var data = messageData();
WriteInformation(data.Message, new string[]{});
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Debug:
{
WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Error:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Events.Progress:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress:
{
var data = messageData();
int progress = (int)data.Value;
@@ -263,7 +263,7 @@ protected override void EndProcessing()
return ;
}
}
- await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
+ await Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
if (token.IsCancellationRequested)
{
return ;
@@ -275,16 +275,16 @@ protected override void EndProcessing()
/// Performs execution of the command.
protected override void ProcessRecord()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
__processRecordId = System.Guid.NewGuid().ToString();
try
{
// work
if (ShouldProcess($"Call remote 'ExtendedZonesRegister' operation"))
{
- using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) )
+ using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token) )
{
- asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token);
+ asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token);
}
}
}
@@ -293,20 +293,20 @@ protected override void ProcessRecord()
// unroll the inner exceptions to get the root cause
foreach( var innerException in aggregateException.Flatten().InnerExceptions )
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordEnd).Wait();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordEnd).Wait();
}
}
@@ -318,20 +318,20 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
if (null != HttpPipelinePrepend)
{
- Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
+ Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
}
if (null != HttpPipelineAppend)
{
- Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
+ Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
}
// get the client instance
try
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
await this.Client.ExtendedZonesRegisterViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline);
@@ -349,9 +349,9 @@ protected override void ProcessRecord()
}
await this.Client.ExtendedZonesRegister(InputObject.SubscriptionId ?? null, InputObject.ExtendedZoneName ?? null, onOk, onDefault, this, Pipeline);
}
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
- catch (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.UndeclaredResponseException urexception)
+ catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.UndeclaredResponseException urexception)
{
WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { })
{
@@ -360,15 +360,15 @@ protected override void ProcessRecord()
}
finally
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordAsyncEnd);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordAsyncEnd);
}
}
}
///
- /// Initializes a new instance of the cmdlet class.
+ /// Initializes a new instance of the cmdlet class.
///
- public RegisterAzDeviceRegistryExtendedZone_RegisterViaIdentity()
+ public RegisterAzEdgeZonesExtendedZone_RegisterViaIdentity()
{
}
@@ -376,14 +376,14 @@ public RegisterAzDeviceRegistryExtendedZone_RegisterViaIdentity()
/// Interrupts currently running code within the command.
protected override void StopProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Cancel();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Cancel();
base.StopProcessing();
}
///
new protected void WriteObject(object sendToPipeline)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline);
}
@@ -391,7 +391,7 @@ protected override void StopProcessing()
///
new protected void WriteObject(object sendToPipeline, bool enumerateCollection)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline, enumerateCollection);
}
@@ -399,12 +399,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.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
- private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
+ private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
{
using( NoSynchronizationContext )
{
@@ -421,7 +421,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.DeviceRegistry.Runtime.RestException(responseMessage, await response);
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 }
@@ -439,12 +439,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.DeviceRegistry.Models.IExtendedZone
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
/// 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 )
{
@@ -456,7 +456,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 / application/json
- // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone
+ // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
var result = (await response);
if (null != result)
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/UnregisterAzDeviceRegistryExtendedZone_Unregister.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/UnregisterAzEdgeZonesExtendedZone_Unregister.cs
similarity index 67%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/UnregisterAzDeviceRegistryExtendedZone_Unregister.cs
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/UnregisterAzEdgeZonesExtendedZone_Unregister.cs
index c29f320edc..d303e831a3 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/UnregisterAzDeviceRegistryExtendedZone_Unregister.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/UnregisterAzEdgeZonesExtendedZone_Unregister.cs
@@ -1,25 +1,25 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Cmdlets
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Cmdlets;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Cmdlets;
using System;
/// Unregisters a subscription for an Extended Zone
///
/// [OpenAPI] Unregister=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/unregister"
///
- [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Unregister, @"AzDeviceRegistryExtendedZone_Unregister", SupportsShouldProcess = true)]
- [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Unregisters a subscription for an Extended Zone")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/unregister", ApiVersion = "2024-04-01-preview")]
- public partial class UnregisterAzDeviceRegistryExtendedZone_Unregister : global::System.Management.Automation.PSCmdlet,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext
+ [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Unregister, @"AzEdgeZonesExtendedZone_Unregister", SupportsShouldProcess = true)]
+ [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone))]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Description(@"Unregisters a subscription for an Extended Zone")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/unregister", ApiVersion = "2024-04-01-preview")]
+ public partial class UnregisterAzEdgeZonesExtendedZone_Unregister : global::System.Management.Automation.PSCmdlet,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IContext
{
/// A unique id generatd for the this cmdlet when it is instantiated.
private string __correlationId = System.Guid.NewGuid().ToString();
@@ -49,14 +49,14 @@ public partial class UnregisterAzDeviceRegistryExtendedZone_Unregister : global:
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter Break { get; set; }
/// Accessor for cancellationTokenSource.
public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } }
/// The reference to the client API class.
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.ClientAPI;
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.ClientAPI;
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -65,7 +65,7 @@ public partial class UnregisterAzDeviceRegistryExtendedZone_Unregister : global:
[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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Azure)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Azure)]
public global::System.Management.Automation.PSObject DefaultProfile { get; set; }
/// Accessor for extensibleParameters.
@@ -74,60 +74,60 @@ public partial class UnregisterAzDeviceRegistryExtendedZone_Unregister : global:
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.
+ /// cancellation delegate. Stops the cmdlet when called.
///
- global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
+ global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
- global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
+ /// cancellation token.
+ global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
/// Backing field for property.
private string _name;
/// The name of the ExtendedZone
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the ExtendedZone")]
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info(
Required = true,
ReadOnly = false,
Description = @"The name of the ExtendedZone",
SerializedName = @"extendedZoneName",
PossibleTypes = new [] { typeof(string) })]
[global::System.Management.Automation.Alias("ExtendedZoneName")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Path)]
public string Name { get => this._name; set => this._name = value; }
///
- /// The instance of the that the remote call will use.
+ /// The instance of the that the remote call will use.
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline Pipeline { get; set; }
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; }
/// Backing field for property.
@@ -135,18 +135,18 @@ public partial class UnregisterAzDeviceRegistryExtendedZone_Unregister : global:
/// 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.DeviceRegistry.Runtime.Info(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.DefaultInfo(
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.DefaultInfo(
Name = @"",
Description =@"",
Script = @"(Get-AzContext).Subscription.Id",
SetCondition = @"")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Path)]
public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; }
///
@@ -154,31 +154,31 @@ public partial class UnregisterAzDeviceRegistryExtendedZone_Unregister : 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.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
- partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
/// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
- partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
protected override void BeginProcessing()
{
- var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryId.Invoke();
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryId.Invoke();
if (telemetryId != "" && telemetryId != "internal")
{
__correlationId = telemetryId;
@@ -186,9 +186,9 @@ protected override void BeginProcessing()
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.AttachDebugger.Break();
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.AttachDebugger.Break();
}
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
/// Performs clean-up after the command execution
@@ -199,7 +199,7 @@ protected override void EndProcessing()
// Flush buffer
WriteObject(_firstResponse);
}
- var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
+ var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
@@ -226,7 +226,7 @@ protected override void EndProcessing()
///
/// A that will be complete when handling of the message is completed.
///
- async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
+ async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
{
using( NoSynchronizationContext )
{
@@ -237,33 +237,33 @@ protected override void EndProcessing()
switch ( id )
{
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Verbose:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Verbose:
{
WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Warning:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Warning:
{
WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Information:
{
var data = messageData();
WriteInformation(data.Message, new string[]{});
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Debug:
{
WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Error:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Events.Progress:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress:
{
var data = messageData();
int progress = (int)data.Value;
@@ -289,7 +289,7 @@ protected override void EndProcessing()
return ;
}
}
- await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
+ await Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
if (token.IsCancellationRequested)
{
return ;
@@ -301,16 +301,16 @@ protected override void EndProcessing()
/// Performs execution of the command.
protected override void ProcessRecord()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
__processRecordId = System.Guid.NewGuid().ToString();
try
{
// work
if (ShouldProcess($"Call remote 'ExtendedZonesUnregister' operation"))
{
- using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) )
+ using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token) )
{
- asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token);
+ asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token);
}
}
}
@@ -319,20 +319,20 @@ protected override void ProcessRecord()
// unroll the inner exceptions to get the root cause
foreach( var innerException in aggregateException.Flatten().InnerExceptions )
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordEnd).Wait();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordEnd).Wait();
}
}
@@ -344,24 +344,24 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
if (null != HttpPipelinePrepend)
{
- Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
+ Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
}
if (null != HttpPipelineAppend)
{
- Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
+ Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
}
// get the client instance
try
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await this.Client.ExtendedZonesUnregister(SubscriptionId, Name, onOk, onDefault, this, Pipeline);
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
- catch (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.UndeclaredResponseException urexception)
+ catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.UndeclaredResponseException urexception)
{
WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Name=Name})
{
@@ -370,7 +370,7 @@ protected override void ProcessRecord()
}
finally
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordAsyncEnd);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordAsyncEnd);
}
}
}
@@ -378,14 +378,14 @@ protected override void ProcessRecord()
/// Interrupts currently running code within the command.
protected override void StopProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Cancel();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Cancel();
base.StopProcessing();
}
///
- /// Initializes a new instance of the cmdlet class.
+ /// Initializes a new instance of the cmdlet class.
///
- public UnregisterAzDeviceRegistryExtendedZone_Unregister()
+ public UnregisterAzEdgeZonesExtendedZone_Unregister()
{
}
@@ -393,7 +393,7 @@ public UnregisterAzDeviceRegistryExtendedZone_Unregister()
///
new protected void WriteObject(object sendToPipeline)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline);
}
@@ -401,7 +401,7 @@ public UnregisterAzDeviceRegistryExtendedZone_Unregister()
///
new protected void WriteObject(object sendToPipeline, bool enumerateCollection)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline, enumerateCollection);
}
@@ -409,12 +409,12 @@ public UnregisterAzDeviceRegistryExtendedZone_Unregister()
/// 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.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
- private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
+ private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
{
using( NoSynchronizationContext )
{
@@ -431,7 +431,7 @@ public UnregisterAzDeviceRegistryExtendedZone_Unregister()
if ((null == code || null == message))
{
// Unrecognized Response. Create an error record based on what we have.
- var ex = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.RestException(responseMessage, await response);
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 }
@@ -449,12 +449,12 @@ public UnregisterAzDeviceRegistryExtendedZone_Unregister()
/// 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.DeviceRegistry.Models.IExtendedZone
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
/// 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 )
{
@@ -466,7 +466,7 @@ public UnregisterAzDeviceRegistryExtendedZone_Unregister()
return ;
}
// onOk - response for 200 / application/json
- // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone
+ // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
var result = (await response);
if (null != result)
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentity.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/UnregisterAzEdgeZonesExtendedZone_UnregisterViaIdentity.cs
similarity index 67%
rename from tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentity.cs
rename to tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/UnregisterAzEdgeZonesExtendedZone_UnregisterViaIdentity.cs
index 050e898ee9..da29905b6c 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentity.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/cmdlets/UnregisterAzEdgeZonesExtendedZone_UnregisterViaIdentity.cs
@@ -1,25 +1,25 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Cmdlets
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell;
- using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Cmdlets;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell;
+ using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Cmdlets;
using System;
/// Unregisters a subscription for an Extended Zone
///
/// [OpenAPI] Unregister=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/unregister"
///
- [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Unregister, @"AzDeviceRegistryExtendedZone_UnregisterViaIdentity", SupportsShouldProcess = true)]
- [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Unregisters a subscription for an Extended Zone")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/unregister", ApiVersion = "2024-04-01-preview")]
- public partial class UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentity : global::System.Management.Automation.PSCmdlet,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener,
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext
+ [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Unregister, @"AzEdgeZonesExtendedZone_UnregisterViaIdentity", SupportsShouldProcess = true)]
+ [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone))]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Description(@"Unregisters a subscription for an Extended Zone")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/unregister", ApiVersion = "2024-04-01-preview")]
+ public partial class UnregisterAzEdgeZonesExtendedZone_UnregisterViaIdentity : global::System.Management.Automation.PSCmdlet,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener,
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IContext
{
/// A unique id generatd for the this cmdlet when it is instantiated.
private string __correlationId = System.Guid.NewGuid().ToString();
@@ -49,14 +49,14 @@ public partial class UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentit
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter Break { get; set; }
/// Accessor for cancellationTokenSource.
public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } }
/// The reference to the client API class.
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.ClientAPI;
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.MicrosoftEdgeZones Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.ClientAPI;
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -65,7 +65,7 @@ public partial class UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentit
[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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Azure)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Azure)]
public global::System.Management.Automation.PSObject DefaultProfile { get; set; }
/// Accessor for extensibleParameters.
@@ -74,53 +74,53 @@ public partial class UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentit
/// 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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentity _inputObject;
+ private Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity _inputObject;
/// Identity Parameter
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)]
- [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)]
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRegistryIdentity InputObject { get => this._inputObject; set => this._inputObject = value; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Path)]
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IEdgeZonesIdentity 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.
+ /// cancellation delegate. Stops the cmdlet when called.
///
- global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
+ global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
- global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
+ /// cancellation token.
+ global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
///
- /// The instance of the that the remote call will use.
+ /// The instance of the that the remote call will use.
///
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.HttpPipeline Pipeline { get; set; }
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; }
///
@@ -128,31 +128,31 @@ public partial class UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentit
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
- partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
/// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
- partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
protected override void BeginProcessing()
{
- var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryId.Invoke();
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryId.Invoke();
if (telemetryId != "" && telemetryId != "internal")
{
__correlationId = telemetryId;
@@ -160,9 +160,9 @@ protected override void BeginProcessing()
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.AttachDebugger.Break();
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.AttachDebugger.Break();
}
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
/// Performs clean-up after the command execution
@@ -173,7 +173,7 @@ protected override void EndProcessing()
// Flush buffer
WriteObject(_firstResponse);
}
- var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
+ var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
@@ -200,7 +200,7 @@ protected override void EndProcessing()
///
/// A that will be complete when handling of the message is completed.
///
- async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
+ async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
{
using( NoSynchronizationContext )
{
@@ -211,33 +211,33 @@ protected override void EndProcessing()
switch ( id )
{
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Verbose:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Verbose:
{
WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Warning:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Warning:
{
WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Information:
{
var data = messageData();
WriteInformation(data.Message, new string[]{});
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Debug:
{
WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}");
return ;
}
- case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Error:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.Events.Progress:
+ case Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.Progress:
{
var data = messageData();
int progress = (int)data.Value;
@@ -263,7 +263,7 @@ protected override void EndProcessing()
return ;
}
}
- await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
+ await Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
if (token.IsCancellationRequested)
{
return ;
@@ -275,16 +275,16 @@ protected override void EndProcessing()
/// Performs execution of the command.
protected override void ProcessRecord()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
__processRecordId = System.Guid.NewGuid().ToString();
try
{
// work
if (ShouldProcess($"Call remote 'ExtendedZonesUnregister' operation"))
{
- using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) )
+ using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token) )
{
- asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token);
+ asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token);
}
}
}
@@ -293,20 +293,20 @@ protected override void ProcessRecord()
// unroll the inner exceptions to get the root cause
foreach( var innerException in aggregateException.Flatten().InnerExceptions )
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordEnd).Wait();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordEnd).Wait();
}
}
@@ -318,20 +318,20 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters);
if (null != HttpPipelinePrepend)
{
- Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
+ Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend);
}
if (null != HttpPipelineAppend)
{
- Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
+ Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend);
}
// get the client instance
try
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
await this.Client.ExtendedZonesUnregisterViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline);
@@ -349,9 +349,9 @@ protected override void ProcessRecord()
}
await this.Client.ExtendedZonesUnregister(InputObject.SubscriptionId ?? null, InputObject.ExtendedZoneName ?? null, onOk, onDefault, this, Pipeline);
}
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
- catch (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.UndeclaredResponseException urexception)
+ catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.UndeclaredResponseException urexception)
{
WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { })
{
@@ -360,7 +360,7 @@ protected override void ProcessRecord()
}
finally
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletProcessRecordAsyncEnd);
+ await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Events.CmdletProcessRecordAsyncEnd);
}
}
}
@@ -368,14 +368,14 @@ protected override void ProcessRecord()
/// Interrupts currently running code within the command.
protected override void StopProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Cancel();
+ ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IEventListener)this).Cancel();
base.StopProcessing();
}
///
- /// Initializes a new instance of the cmdlet class.
+ /// Initializes a new instance of the cmdlet class.
///
- public UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentity()
+ public UnregisterAzEdgeZonesExtendedZone_UnregisterViaIdentity()
{
}
@@ -383,7 +383,7 @@ public UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentity()
///
new protected void WriteObject(object sendToPipeline)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline);
}
@@ -391,7 +391,7 @@ public UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentity()
///
new protected void WriteObject(object sendToPipeline, bool enumerateCollection)
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId);
base.WriteObject(sendToPipeline, enumerateCollection);
}
@@ -399,12 +399,12 @@ public UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentity()
/// 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.DeviceRegistry.Models.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponse
/// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
- private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
+ private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
{
using( NoSynchronizationContext )
{
@@ -421,7 +421,7 @@ public UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentity()
if ((null == code || null == message))
{
// Unrecognized Response. Create an error record based on what we have.
- var ex = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.RestException(responseMessage, await response);
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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 }
@@ -439,12 +439,12 @@ public UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentity()
/// 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.DeviceRegistry.Models.IExtendedZone
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
/// 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 )
{
@@ -456,7 +456,7 @@ public UnregisterAzDeviceRegistryExtendedZone_UnregisterViaIdentity()
return ;
}
// onOk - response for 200 / application/json
- // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedZone
+ // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZone
var result = (await response);
if (null != result)
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/AsyncCommandRuntime.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/AsyncCommandRuntime.cs
index 6be59fd914..93fea2394e 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/AsyncCommandRuntime.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/AsyncCommandRuntime.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
using System.Management.Automation;
using System.Management.Automation.Host;
@@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
internal interface IAsyncCommandRuntimeExtensions
{
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep Wrap(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep func);
- System.Collections.Generic.IEnumerable Wrap(System.Collections.Generic.IEnumerable funcs);
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SendAsyncStep Wrap(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SendAsyncStep func);
+ System.Collections.Generic.IEnumerable Wrap(System.Collections.Generic.IEnumerable funcs);
T ExecuteSync(System.Func step);
}
@@ -781,8 +781,8 @@ public void Wait(System.Threading.Tasks.Task ProcessRecordAsyncTask, System.Thre
throw ProcessRecordAsyncTask.Exception;
}
}
- public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep Wrap(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SendAsyncStep func) => func.Target.GetType().Name != "Closure" ? func : (p1, p2, p3) => ExecuteSync>(() => func(p1, p2, p3));
- public System.Collections.Generic.IEnumerable Wrap(System.Collections.Generic.IEnumerable funcs) => funcs?.Select(Wrap);
+ public Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SendAsyncStep Wrap(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.SendAsyncStep func) => func.Target.GetType().Name != "Closure" ? func : (p1, p2, p3) => ExecuteSync>(() => func(p1, p2, p3));
+ public System.Collections.Generic.IEnumerable Wrap(System.Collections.Generic.IEnumerable funcs) => funcs?.Select(Wrap);
public T ExecuteSync(System.Func step)
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/AsyncJob.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/AsyncJob.cs
index 916f03c517..841dc69dc8 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/AsyncJob.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/AsyncJob.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
using System.Management.Automation;
using System.Management.Automation.Host;
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/AsyncOperationResponse.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/AsyncOperationResponse.cs
index 28b97a1c3a..8fe5b8868b 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/AsyncOperationResponse.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/AsyncOperationResponse.cs
@@ -2,9 +2,9 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
[System.ComponentModel.TypeConverter(typeof(AsyncOperationResponseTypeConverter))]
public class AsyncOperationResponse
@@ -14,19 +14,19 @@ public class AsyncOperationResponse
public AsyncOperationResponse()
{
}
- internal AsyncOperationResponse(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json)
+ internal AsyncOperationResponse(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json)
{
// pull target
- { Target = If(json?.PropertyT("target"), out var _v) ? (string)_v : (string)Target; }
+ { Target = If(json?.PropertyT("target"), out var _v) ? (string)_v : (string)Target; }
}
public string ToJsonString()
{
return $"{{ \"target\" : \"{this.Target}\" }}";
}
- public static AsyncOperationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node)
+ public static AsyncOperationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new AsyncOperationResponse(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonObject json ? new AsyncOperationResponse(json) : null;
}
@@ -35,7 +35,7 @@ public static AsyncOperationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static AsyncOperationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText));
+ public static AsyncOperationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(jsonText));
}
@@ -94,7 +94,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
try
{
string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object;
+ return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json.JsonType.Object;
}
catch
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Attributes/ExternalDocsAttribute.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Attributes/ExternalDocsAttribute.cs
index f277337cea..7110fbfffe 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Attributes/ExternalDocsAttribute.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Attributes/ExternalDocsAttribute.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones
{
using System;
using System.Collections.Generic;
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs
index c324f36300..5ebc344715 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs
@@ -16,7 +16,7 @@
using System.Collections.Generic;
using System.Management.Automation;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones
{
public class PSArgumentCompleterAttribute : ArgumentCompleterAttribute
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs
index 3e5860e53c..732425a857 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs
@@ -8,9 +8,9 @@
using System.Linq;
using System.Management.Automation;
using System.Text;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsHelpers;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsHelpers;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
[Cmdlet(VerbsData.Export, "CmdletSurface")]
[DoNotExport]
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs
index a2a5b0ac35..f5f3576073 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs
@@ -6,10 +6,10 @@
using System.IO;
using System.Linq;
using System.Management.Automation;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.MarkdownTypesExtensions;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsHelpers;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.MarkdownTypesExtensions;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsHelpers;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
[Cmdlet(VerbsData.Export, "ExampleStub")]
[DoNotExport]
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs
index 3a1a3221fe..f9e067d9df 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs
@@ -9,7 +9,7 @@
using System.Management.Automation;
using System.Reflection;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
[Cmdlet(VerbsData.Export, "FormatPs1xml")]
[DoNotExport]
@@ -19,7 +19,7 @@ public class ExportFormatPs1xml : PSCmdlet
[ValidateNotNullOrEmpty]
public string FilePath { get; set; }
- private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models";
+ private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models";
private const string SupportNamespace = @"${$project.supportNamespace.fullName}";
private const string PropertiesExcludedForTableview = @"Id,Type";
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs
index 845450c122..065c07c494 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs
@@ -5,9 +5,9 @@
using System;
using System.Linq;
using System.Management.Automation;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.MarkdownRenderer;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.MarkdownRenderer;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
[Cmdlet(VerbsData.Export, "HelpMarkdown")]
[DoNotExport]
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs
index 61ce290e0e..9b875aaa93 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs
@@ -10,7 +10,7 @@
using System.Reflection;
using System.Text;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
[Cmdlet(VerbsData.Export, "ModelSurface")]
[DoNotExport]
@@ -23,7 +23,7 @@ public class ExportModelSurface : PSCmdlet
[Parameter]
public bool UseExpandedFormat { get; set; }
- private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models";
+ private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models";
private const string SupportNamespace = @"${$project.supportNamespace.fullName}";
protected override void ProcessRecord()
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs
index d786435d4c..ca3991e754 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs
@@ -7,12 +7,12 @@
using System.Linq;
using System.Management.Automation;
using System.Text;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsHelpers;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.MarkdownRenderer;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsProxyTypeExtensions;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsHelpers;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.MarkdownRenderer;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsProxyTypeExtensions;
using System.Collections.Generic;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
[Cmdlet(VerbsData.Export, "ProxyCmdlet", DefaultParameterSetName = "Docs")]
[DoNotExport]
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs
index 3cdeb44771..7af304605e 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs
@@ -8,9 +8,9 @@
using System.Management.Automation;
using System.Text;
using System.Text.RegularExpressions;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsHelpers;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsHelpers;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
[Cmdlet(VerbsData.Export, "Psd1")]
[DoNotExport]
@@ -71,13 +71,13 @@ protected override void ProcessRecord()
var sb = new StringBuilder();
sb.AppendLine("@{");
sb.AppendLine($@"{GuidStart} = '{ModuleGuid}'");
- sb.AppendLine($@"{Indent}RootModule = '{"./Az.DeviceRegistry.psm1"}'");
+ sb.AppendLine($@"{Indent}RootModule = '{"./Az.EdgeZones.psm1"}'");
sb.AppendLine($@"{Indent}ModuleVersion = '{version}'");
sb.AppendLine($@"{Indent}CompatiblePSEditions = 'Core', 'Desktop'");
sb.AppendLine($@"{Indent}Author = '{"Microsoft Corporation"}'");
sb.AppendLine($@"{Indent}CompanyName = '{"Microsoft Corporation"}'");
sb.AppendLine($@"{Indent}Copyright = '{"Microsoft Corporation. All rights reserved."}'");
- sb.AppendLine($@"{Indent}Description = '{"Microsoft Azure PowerShell: DeviceRegistry cmdlets"}'");
+ sb.AppendLine($@"{Indent}Description = '{"Microsoft Azure PowerShell: EdgeZones cmdlets"}'");
sb.AppendLine($@"{Indent}PowerShellVersion = '5.1'");
sb.AppendLine($@"{Indent}DotNetFrameworkVersion = '4.7.2'");
@@ -94,7 +94,7 @@ protected override void ProcessRecord()
}
else
{
- sb.AppendLine($@"{Indent}RequiredAssemblies = '{"./bin/Az.DeviceRegistry.private.dll"}'");
+ sb.AppendLine($@"{Indent}RequiredAssemblies = '{"./bin/Az.EdgeZones.private.dll"}'");
}
// NestedModules
@@ -113,7 +113,7 @@ protected override void ProcessRecord()
var customFormatPs1xmlFiles = Directory.GetFiles(CustomFolder)
.Where(f => f.EndsWith(".format.ps1xml"))
.Select(f => $"{CustomFolderRelative}/{Path.GetFileName(f)}");
- var formatList = customFormatPs1xmlFiles.Prepend("./Az.DeviceRegistry.format.ps1xml").ToPsList();
+ var formatList = customFormatPs1xmlFiles.Prepend("./Az.EdgeZones.format.ps1xml").ToPsList();
sb.AppendLine($@"{Indent}FormatsToProcess = {formatList}");
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs
index c41cd654b3..38e1ee48e2 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs
@@ -7,10 +7,10 @@
using System.Linq;
using System.Management.Automation;
using System.Text;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsProxyOutputExtensions;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsHelpers;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsProxyOutputExtensions;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsHelpers;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
[Cmdlet(VerbsData.Export, "TestStub")]
[DoNotExport]
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs
index dbdcc111eb..4aeee5e9d2 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs
@@ -6,7 +6,7 @@
using System.Linq;
using System.Management.Automation;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
[Cmdlet(VerbsCommon.Get, "CommonParameter")]
[OutputType(typeof(Dictionary))]
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs
index 96bacca902..72c769dff9 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs
@@ -3,9 +3,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
using System.Management.Automation;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsHelpers;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsHelpers;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
[Cmdlet(VerbsCommon.Get, "ModuleGuid")]
[DoNotExport]
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs
index 9bf2e77936..1f2a256d95 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs
@@ -4,9 +4,9 @@
*--------------------------------------------------------------------------------------------*/
using System.Linq;
using System.Management.Automation;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsHelpers;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsHelpers;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
[Cmdlet(VerbsCommon.Get, "ScriptCmdlet")]
[OutputType(typeof(string[]))]
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/CollectionExtensions.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/CollectionExtensions.cs
index 34834b201e..286df8172a 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/CollectionExtensions.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/CollectionExtensions.cs
@@ -6,7 +6,7 @@
using System.Collections.Generic;
using System.Linq;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
internal static class CollectionExtensions
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/MarkdownRenderer.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/MarkdownRenderer.cs
index df7d12a9dd..3cd0c3289c 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/MarkdownRenderer.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/MarkdownRenderer.cs
@@ -7,10 +7,10 @@
using System.IO;
using System.Linq;
using System.Text;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.MarkdownTypesExtensions;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsProxyOutputExtensions;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.MarkdownTypesExtensions;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsProxyOutputExtensions;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
internal static class MarkdownRenderer
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsFormatTypes.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsFormatTypes.cs
index dd9d45e210..cc2708a9fd 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsFormatTypes.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsFormatTypes.cs
@@ -8,7 +8,7 @@
using System.Reflection;
using System.Xml.Serialization;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
internal class ViewParameters
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs
index f060d8699d..75a0b1bbed 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs
@@ -5,9 +5,9 @@
using System;
using System.Linq;
using System.Management.Automation;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsHelpOutputExtensions;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsHelpOutputExtensions;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
internal class HelpMetadataOutput
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsHelpTypes.cs
index 107684a28a..0bce990d54 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsHelpTypes.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsHelpTypes.cs
@@ -7,7 +7,7 @@
using System.Linq;
using System.Management.Automation;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
internal class PsHelpInfo
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs
index a26c0b7689..816f284153 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs
@@ -7,10 +7,10 @@
using System.IO;
using System.Linq;
using System.Management.Automation;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.MarkdownTypesExtensions;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsHelpOutputExtensions;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.MarkdownTypesExtensions;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsHelpOutputExtensions;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
internal class MarkdownHelpInfo
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index 4d80b97036..35589a53fa 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
@@ -8,10 +8,10 @@
using System.Management.Automation;
using System.Text;
using System.Text.RegularExpressions;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsProxyOutputExtensions;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsProxyTypeExtensions;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsProxyOutputExtensions;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsProxyTypeExtensions;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
internal class OutputTypeOutput
{
@@ -208,12 +208,12 @@ public BeginOutput(VariantGroup variantGroup) : base(variantGroup)
public string GetProcessCustomAttributesAtRuntime()
{
return VariantGroup.IsInternal ? "" : IsAzure ? $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]
-{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
-{Indent}{Indent}if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{
-{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+{Indent}{Indent}if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{
+{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
-{Indent}{Indent}}}" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
-{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)";
+{Indent}{Indent}}}" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)";
}
private string GetTelemetry()
@@ -227,7 +227,7 @@ private string GetTelemetry()
{Indent}{Indent}$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
{Indent}{Indent}if ($preTelemetryId -eq '') {{
{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
-{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
{Indent}{Indent}}} else {{
{Indent}{Indent}{Indent}$internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
{Indent}{Indent}{Indent}if ($internalCalledCmdlets -eq '') {{
@@ -296,7 +296,7 @@ private string GetDefaultValuesStatements()
{
sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{");
sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false");
- sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }}");
+ sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }}");
sb.AppendLine($"{Indent}{Indent}{Indent}if ($testPlayback) {{");
sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')");
sb.AppendLine($"{Indent}{Indent}{Indent}}} else {{");
@@ -363,7 +363,7 @@ private string GetTelemetry()
{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
{Indent}{Indent}if ($preTelemetryId -eq '') {{
-{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
{Indent}{Indent}}}
{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsProxyTypes.cs
index 8867a4da3d..f6e6b24449 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsProxyTypes.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/Models/PsProxyTypes.cs
@@ -8,10 +8,10 @@
using System.Linq;
using System.Management.Automation;
using System.Reflection;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsProxyOutputExtensions;
-using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.PsProxyTypeExtensions;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsProxyOutputExtensions;
+using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell.PsProxyTypeExtensions;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
internal class ProfileGroup
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/PsAttributes.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/PsAttributes.cs
index bd1e7648ca..95f7e87c06 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/PsAttributes.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/PsAttributes.cs
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
using System;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones
{
[AttributeUsage(AttributeTargets.Class)]
public class DescriptionAttribute : Attribute
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/PsExtensions.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/PsExtensions.cs
index 90697b272e..637d134119 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/PsExtensions.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/PsExtensions.cs
@@ -9,7 +9,7 @@
using System.Management.Automation;
using System.Reflection;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
internal static class PsExtensions
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/PsHelpers.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/PsHelpers.cs
index ce2c2c51a4..43ac152b38 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/PsHelpers.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/PsHelpers.cs
@@ -10,7 +10,7 @@
using System.Management.Automation;
using Pwsh = System.Management.Automation.PowerShell;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
internal static class PsHelpers
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/StringExtensions.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/StringExtensions.cs
index 8b9387ab34..8f9d614529 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/StringExtensions.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/StringExtensions.cs
@@ -5,7 +5,7 @@
using System;
using System.Linq;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
internal static class StringExtensions
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/XmlExtensions.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/XmlExtensions.cs
index d0b09514bd..902132fba2 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/XmlExtensions.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/BuildTime/XmlExtensions.cs
@@ -6,7 +6,7 @@
using System.Xml;
using System.Xml.Serialization;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PowerShell
{
internal static class XmlExtensions
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/CmdInfoHandler.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/CmdInfoHandler.cs
index cdba1eeec8..757a11da40 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/CmdInfoHandler.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/CmdInfoHandler.cs
@@ -8,7 +8,7 @@
using System.Threading;
using System.Threading.Tasks;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime
{
using NextDelegate = Func, Task>, Task>;
using SignalDelegate = Func, Task>;
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Context.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Context.cs
index 6f3d19f495..3f1cfb62c9 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Context.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Context.cs
@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime
{
using System;
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime
using System.Threading;
using System.Threading.Tasks;
using GetEventData = System.Func;
- using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions;
+ using static Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Extensions;
///
/// The IContext Interface defines the communication mechanism for input customization.
@@ -28,6 +28,6 @@ public interface IContext
System.Threading.CancellationTokenSource CancellationTokenSource { get; set; }
System.Collections.Generic.IDictionary ExtensibleParameters { get; }
HttpPipeline Pipeline { get; set; }
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.MicrosoftEdgeZones Client { get; }
+ Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.MicrosoftEdgeZones Client { get; }
}
}
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/ConversionException.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/ConversionException.cs
index 7da4065167..4517c1d645 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/ConversionException.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/ConversionException.cs
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
using System;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
internal class ConversionException : Exception
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/IJsonConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/IJsonConverter.cs
index 709fb6c55c..079d13bfde 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/IJsonConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/IJsonConverter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
internal interface IJsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/BinaryConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/BinaryConverter.cs
index dfb19f8cfd..b4c68eedc7 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/BinaryConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/BinaryConverter.cs
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
using System;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class BinaryConverter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/BooleanConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/BooleanConverter.cs
index 4cfdda534a..a7ba2eadd6 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/BooleanConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/BooleanConverter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class BooleanConverter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DateTimeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DateTimeConverter.cs
index cc9eb1ff16..5802055a04 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DateTimeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DateTimeConverter.cs
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
using System;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class DateTimeConverter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs
index bcc2087d0e..b6bddeca99 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
using System;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class DateTimeOffsetConverter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DecimalConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DecimalConverter.cs
index 25505cabd8..142e1760fe 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DecimalConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DecimalConverter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class DecimalConverter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DoubleConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DoubleConverter.cs
index a508a8db1a..9664661a50 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DoubleConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/DoubleConverter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class DoubleConverter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/EnumConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/EnumConverter.cs
index 6fc286178b..5d3faafcc7 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/EnumConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/EnumConverter.cs
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
using System;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class EnumConverter : IJsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/GuidConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/GuidConverter.cs
index 153454b6a1..fdd389de70 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/GuidConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/GuidConverter.cs
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
using System;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class GuidConverter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/HashSet'1Converter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/HashSet'1Converter.cs
index 96a91f2735..98f50f73d5 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/HashSet'1Converter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/HashSet'1Converter.cs
@@ -5,7 +5,7 @@
using System.Collections.Generic;
using System.Linq;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class HashSetConverter : JsonConverter>
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/Int16Converter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/Int16Converter.cs
index 67f598b7aa..8a3911c2ef 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/Int16Converter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/Int16Converter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class Int16Converter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/Int32Converter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/Int32Converter.cs
index 974fc5d3a1..f23b29e405 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/Int32Converter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/Int32Converter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class Int32Converter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/Int64Converter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/Int64Converter.cs
index d8d3634728..a44ef4eb1b 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/Int64Converter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/Int64Converter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class Int64Converter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/JsonArrayConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/JsonArrayConverter.cs
index 3fe69c7879..eef9a8f009 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/JsonArrayConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/JsonArrayConverter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class JsonArrayConverter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/JsonObjectConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/JsonObjectConverter.cs
index e1d6775f9a..77999c649c 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/JsonObjectConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/JsonObjectConverter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class JsonObjectConverter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/SingleConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/SingleConverter.cs
index b3c7501847..8c9761f75c 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/SingleConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/SingleConverter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class SingleConverter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/StringConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/StringConverter.cs
index d173747432..60bc6aef5c 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/StringConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/StringConverter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class StringConverter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/TimeSpanConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/TimeSpanConverter.cs
index 27fb5813d0..1dd2cf7c37 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/TimeSpanConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/TimeSpanConverter.cs
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
using System;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class TimeSpanConverter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UInt16Converter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UInt16Converter.cs
index dcb1049b72..2d8fa5bca1 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UInt16Converter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UInt16Converter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class UInt16Converter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UInt32Converter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UInt32Converter.cs
index fbf91e83f4..5266077444 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UInt32Converter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UInt32Converter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class UInt32Converter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UInt64Converter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UInt64Converter.cs
index 2ce6c5ded3..70b7a3acd1 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UInt64Converter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UInt64Converter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class UInt64Converter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UriConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UriConverter.cs
index f4175ada3f..6e789e4dda 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UriConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/Instances/UriConverter.cs
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
using System;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class UriConverter : JsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/JsonConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/JsonConverter.cs
index c33d80b0e2..c3d7b673db 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/JsonConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/JsonConverter.cs
@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public abstract class JsonConverter : IJsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/JsonConverterAttribute.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/JsonConverterAttribute.cs
index 8657244dc1..e1c06ab8ff 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/JsonConverterAttribute.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/JsonConverterAttribute.cs
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
using System;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class JsonConverterAttribute : Attribute
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/JsonConverterFactory.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/JsonConverterFactory.cs
index 823b68615c..15811cbc97 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/JsonConverterFactory.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/JsonConverterFactory.cs
@@ -5,7 +5,7 @@
using System;
using System.Collections.Generic;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class JsonConverterFactory
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/StringLikeConverter.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/StringLikeConverter.cs
index 292a21545b..40920e9c62 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/StringLikeConverter.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Conversions/StringLikeConverter.cs
@@ -5,7 +5,7 @@
using System;
using System.Reflection;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json
{
public sealed class StringLikeConverter : IJsonConverter
{
diff --git a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Customizations/IJsonSerializable.cs b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Customizations/IJsonSerializable.cs
index 9c110cf753..c73b70b1ec 100644
--- a/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Customizations/IJsonSerializable.cs
+++ b/tests-upgrade/tests-emitter/EdgeZones.Management/target/generated/runtime/Customizations/IJsonSerializable.cs
@@ -3,10 +3,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json;
+using Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Json;
using System;
-namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime
+namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime
{
public interface IJsonSerializable
{
@@ -134,7 +134,7 @@ private static JsonNode TryToJsonValue(dynamic oValue)
internal static JsonNode ToJsonValue(object value)
{
// things that implement our interface are preferred.
- if (value is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable jsonSerializable)
+ if (value is Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.IJsonSerializable jsonSerializable)
{
return jsonSerializable.ToJson();
}
@@ -154,7 +154,7 @@ internal static JsonNode ToJsonValue(object value)
// dictionaries are objects that should be able to serialize
if (value is System.Collections.Generic.IDictionary dictionary)
{
- return Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.JsonSerializable.ToJson(dictionary, null);
+ return Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.JsonSerializable.ToJson(dictionary, null);
}
// hashtables are converted to dictionaries for serialization
@@ -162,7 +162,7 @@ internal static JsonNode ToJsonValue(object value)
{
var dict = new System.Collections.Generic.Dictionary();
DictionaryExtensions.HashTableToDictionary