diff --git a/generated/BareMetal/BareMetal.Autorest/Az.BareMetal.csproj b/generated/BareMetal/BareMetal.Autorest/Az.BareMetal.csproj
index 0dac7b59ad20..63a5a0bef5f9 100644
--- a/generated/BareMetal/BareMetal.Autorest/Az.BareMetal.csproj
+++ b/generated/BareMetal/BareMetal.Autorest/Az.BareMetal.csproj
@@ -2,9 +2,9 @@
BareMetal
BareMetal
+ BareMetal.Autorest
-
diff --git a/generated/BareMetal/BareMetal.Autorest/Az.BareMetal.format.ps1xml b/generated/BareMetal/BareMetal.Autorest/Az.BareMetal.format.ps1xml
index 834b5b2a3569..a1d3aa02865a 100644
--- a/generated/BareMetal/BareMetal.Autorest/Az.BareMetal.format.ps1xml
+++ b/generated/BareMetal/BareMetal.Autorest/Az.BareMetal.format.ps1xml
@@ -2,43 +2,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.BareMetalIdentity
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstance
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.BareMetalIdentity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- AzureBareMetalInstanceName
-
-
- ResourceGroupName
-
-
- SubscriptionId
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstance
-
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstance
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstance#Multiple
@@ -70,9 +36,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstanceProperties
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstanceProperties#Multiple
@@ -122,9 +88,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstancesListResult
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstancesListResult
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstancesListResult
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstancesListResult#Multiple
@@ -144,9 +110,43 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.Disk
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.BareMetalIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.BareMetalIdentity#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AzureBareMetalInstanceName
+
+
+ ResourceGroupName
+
+
+ SubscriptionId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Disk
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.Disk
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Disk#Multiple
@@ -178,9 +178,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.Display
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Display
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.Display
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Display#Multiple
@@ -218,9 +218,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorDefinition
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorDefinition#Multiple
@@ -246,9 +246,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.HardwareProfile
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.HardwareProfile
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.HardwareProfile
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.HardwareProfile#Multiple
@@ -274,9 +274,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IPAddress
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IPAddress
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IPAddress
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IPAddress#Multiple
@@ -296,9 +296,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.NetworkProfile
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.NetworkProfile
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.NetworkProfile
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.NetworkProfile#Multiple
@@ -318,9 +318,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.Operation
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Operation
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.Operation
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Operation#Multiple
@@ -346,9 +346,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.OSProfile
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.OSProfile
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.OSProfile
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.OSProfile#Multiple
@@ -386,43 +386,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.Result
-
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.Result
-
-
-
-
-
-
-
-
-
-
-
- SampleProperty
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.StorageProfile
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Resource
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.StorageProfile
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Resource#Multiple
-
+
- NfsIPAddress
+ Name
@@ -430,21 +408,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.Tags
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Result
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.Tags
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Result#Multiple
-
+
- Item
+ SampleProperty
@@ -452,21 +430,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.Resource
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.StorageProfile
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.Resource
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.StorageProfile#Multiple
-
+
- Name
+ NfsIPAddress
@@ -474,9 +452,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.SystemData
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.SystemData#Multiple
@@ -526,9 +504,31 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.TrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Tags
+
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Tags#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.TrackedResource
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.TrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.TrackedResource#Multiple
@@ -554,9 +554,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.TrackedResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.TrackedResourceTags
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.TrackedResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.TrackedResourceTags#Multiple
diff --git a/generated/BareMetal/BareMetal.Autorest/Az.BareMetal.psd1 b/generated/BareMetal/BareMetal.Autorest/Az.BareMetal.psd1
index 7157b7c5c9a9..d6bab1f18dab 100644
--- a/generated/BareMetal/BareMetal.Autorest/Az.BareMetal.psd1
+++ b/generated/BareMetal/BareMetal.Autorest/Az.BareMetal.psd1
@@ -11,8 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.BareMetal.private.dll'
FormatsToProcess = './Az.BareMetal.format.ps1xml'
- FunctionsToExport = 'Get-AzBareMetal', 'Update-AzBareMetal', '*'
- AliasesToExport = '*'
+ FunctionsToExport = 'Get-AzBareMetal', 'Update-AzBareMetal'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'BareMetal'
diff --git a/generated/BareMetal/BareMetal.Autorest/Properties/AssemblyInfo.cs b/generated/BareMetal/BareMetal.Autorest/Properties/AssemblyInfo.cs
index ce399c32337c..e586f0297925 100644
--- a/generated/BareMetal/BareMetal.Autorest/Properties/AssemblyInfo.cs
+++ b/generated/BareMetal/BareMetal.Autorest/Properties/AssemblyInfo.cs
@@ -1,28 +1,26 @@
-// ----------------------------------------------------------------------------------
-//
-// Copyright Microsoft Corporation
-// Licensed under the Apache License, Version 2.0 (the "License");
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
+// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-// ----------------------------------------------------------------------------------
+// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+// is regenerated.
using System;
using System.Reflection;
+using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-[assembly: AssemblyTitle("Microsoft Azure Powershell - BareMetal")]
-[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
-[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
-[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
-
-[assembly: ComVisible(false)]
-[assembly: CLSCompliant(false)]
-[assembly: Guid("92dfcf97-b78e-4e41-89a2-c1f4743fa363")]
-[assembly: AssemblyVersion("0.1.2")]
-[assembly: AssemblyFileVersion("0.1.2")]
+[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
+[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
+[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
+[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - BareMetal")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
+[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
+[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
+[assembly: System.CLSCompliantAttribute(false)]
diff --git a/generated/BareMetal/BareMetal.Autorest/check-dependencies.ps1 b/generated/BareMetal/BareMetal.Autorest/check-dependencies.ps1
index c29591c7bfe1..90ca9867ae40 100644
--- a/generated/BareMetal/BareMetal.Autorest/check-dependencies.ps1
+++ b/generated/BareMetal/BareMetal.Autorest/check-dependencies.ps1
@@ -12,13 +12,13 @@
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
# is regenerated.
# ----------------------------------------------------------------------------------
-param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
+param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
$ErrorActionPreference = 'Stop'
-if(-not $Isolated) {
+if(-not $NotIsolated) {
Write-Host -ForegroundColor Green 'Creating isolated process...'
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
- & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
return
}
diff --git a/generated/BareMetal/BareMetal.Autorest/exports/Get-AzBareMetal.ps1 b/generated/BareMetal/BareMetal.Autorest/exports/Get-AzBareMetal.ps1
index 73cdea400528..8816962c0ceb 100644
--- a/generated/BareMetal/BareMetal.Autorest/exports/Get-AzBareMetal.ps1
+++ b/generated/BareMetal/BareMetal.Autorest/exports/Get-AzBareMetal.ps1
@@ -27,12 +27,12 @@ Get-AzBareMetal -Name oelnvmetest -ResourceGroupName SAT09A-T230
Get-AzBareMetal -ResourceGroupName MWH03A-T210
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance
+Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance
.Link
https://learn.microsoft.com/powershell/module/az.baremetal/get-azbaremetal
#>
function Get-AzBareMetal {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -113,6 +113,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -136,9 +145,7 @@ begin {
List = 'Az.BareMetal.private\Get-AzBareMetal_List';
List1 = 'Az.BareMetal.private\Get-AzBareMetal_List1';
}
- if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -152,6 +159,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/BareMetal/BareMetal.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/BareMetal/BareMetal.Autorest/exports/ProxyCmdletDefinitions.ps1
index 3587375e5b4a..9108e74f238d 100644
--- a/generated/BareMetal/BareMetal.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/BareMetal/BareMetal.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -27,12 +27,12 @@ Get-AzBareMetal -Name oelnvmetest -ResourceGroupName SAT09A-T230
Get-AzBareMetal -ResourceGroupName MWH03A-T210
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance
+Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance
.Link
https://learn.microsoft.com/powershell/module/az.baremetal/get-azbaremetal
#>
function Get-AzBareMetal {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -113,6 +113,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -136,9 +145,7 @@ begin {
List = 'Az.BareMetal.private\Get-AzBareMetal_List';
List1 = 'Az.BareMetal.private\Get-AzBareMetal_List1';
}
- if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -152,6 +159,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -208,7 +218,7 @@ Get-AzBareMetal -Name oraclerac53 -ResourceGroupName SAT09A-T530 | Update-AzBare
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IBareMetalIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance
+Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -223,10 +233,12 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.baremetal/update-azbaremetal
#>
function Update-AzBareMetal {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Alias('AzureBareMetalInstanceName')]
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Category('Path')]
[System.String]
@@ -234,6 +246,8 @@ param(
${Name},
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Category('Path')]
[System.String]
# The name of the resource group.
@@ -241,6 +255,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpdateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -251,16 +267,28 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IBareMetalIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ITags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITags]))]
[System.Collections.Hashtable]
# Tags field of the AzureBareMetal instance.
${Tag},
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Category('Body')]
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -317,6 +345,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -338,10 +375,10 @@ begin {
$mapping = @{
UpdateExpanded = 'Az.BareMetal.private\Update-AzBareMetal_UpdateExpanded';
UpdateViaIdentityExpanded = 'Az.BareMetal.private\Update-AzBareMetal_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.BareMetal.private\Update-AzBareMetal_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.BareMetal.private\Update-AzBareMetal_UpdateViaJsonString';
}
- if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -355,6 +392,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/BareMetal/BareMetal.Autorest/exports/Update-AzBareMetal.ps1 b/generated/BareMetal/BareMetal.Autorest/exports/Update-AzBareMetal.ps1
index 7e7cfc8c4577..82ba3678715f 100644
--- a/generated/BareMetal/BareMetal.Autorest/exports/Update-AzBareMetal.ps1
+++ b/generated/BareMetal/BareMetal.Autorest/exports/Update-AzBareMetal.ps1
@@ -27,7 +27,7 @@ Get-AzBareMetal -Name oraclerac53 -ResourceGroupName SAT09A-T530 | Update-AzBare
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IBareMetalIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance
+Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -42,10 +42,12 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.baremetal/update-azbaremetal
#>
function Update-AzBareMetal {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Alias('AzureBareMetalInstanceName')]
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Category('Path')]
[System.String]
@@ -53,6 +55,8 @@ param(
${Name},
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Category('Path')]
[System.String]
# The name of the resource group.
@@ -60,6 +64,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpdateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -70,16 +76,28 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IBareMetalIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ITags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITags]))]
[System.Collections.Hashtable]
# Tags field of the AzureBareMetal instance.
${Tag},
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Category('Body')]
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -136,6 +154,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -157,10 +184,10 @@ begin {
$mapping = @{
UpdateExpanded = 'Az.BareMetal.private\Update-AzBareMetal_UpdateExpanded';
UpdateViaIdentityExpanded = 'Az.BareMetal.private\Update-AzBareMetal_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.BareMetal.private\Update-AzBareMetal_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.BareMetal.private\Update-AzBareMetal_UpdateViaJsonString';
}
- if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -174,6 +201,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/BareMetal/BareMetal.Autorest/generate-info.json b/generated/BareMetal/BareMetal.Autorest/generate-info.json
index efb7da28df7f..62837e5e7c55 100644
--- a/generated/BareMetal/BareMetal.Autorest/generate-info.json
+++ b/generated/BareMetal/BareMetal.Autorest/generate-info.json
@@ -1,3 +1,3 @@
{
- "generate_Id": "8ac47f73-2bd8-4c01-9857-c8ec51d7cae3"
+ "generate_Id": "44b7941b-5824-4f02-963b-daffa3df1e89"
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/Module.cs b/generated/BareMetal/BareMetal.Autorest/generated/Module.cs
index e81fa874a75a..82ea39ec2b76 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/Module.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/Module.cs
@@ -28,12 +28,20 @@ public partial class Module
public global::System.Net.Http.HttpClientHandler _handler = new global::System.Net.Http.HttpClientHandler();
+ private static bool _init = false;
+
+ private static readonly global::System.Object _initLock = new global::System.Object();
+
+ private static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Module _instance;
+
/// the ISendAsync pipeline instance
private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.HttpPipeline _pipeline;
/// the ISendAsync pipeline instance (when proxy is enabled)
private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.HttpPipeline _pipelineWithProxy;
+ private static readonly global::System.Object _singletonLock = new global::System.Object();
+
public bool _useProxy = false;
public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy();
@@ -56,11 +64,8 @@ public partial class Module
/// The delegate to get the telemetry info.
public GetTelemetryInfoDelegate GetTelemetryInfo { get; set; }
- /// Backing field for property.
- private static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Module _instance;
-
/// the singleton of this module class
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Module Instance => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Module._instance?? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Module._instance = new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Module());
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal";
@@ -125,9 +130,17 @@ public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.HttpPipeline CreateP
/// Initialization steps performed after the module is loaded.
public void Init()
{
- OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } );
- OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } );
- CustomInit();
+ if (_init == false)
+ {
+ lock (_initLock) {
+ if (_init == false) {
+ OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } );
+ OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } );
+ CustomInit();
+ _init = true;
+ }
+ }
+ }
}
/// Creates the module instance.
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/BareMetal.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/BareMetal.cs
index 649c82d2837a..08d1241f9a61 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/BareMetal.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/BareMetal.cs
@@ -28,7 +28,7 @@ public partial class BareMetal
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task AzureBareMetalInstancesGet(string subscriptionId, string resourceGroupName, string azureBareMetalInstanceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task AzureBareMetalInstancesGet(string subscriptionId, string resourceGroupName, string azureBareMetalInstanceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
{
var apiVersion = @"2021-08-09";
// Constant Parameters
@@ -55,7 +55,7 @@ public partial class BareMetal
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.AzureBareMetalInstancesGet_Call(request,onOk,onDefault,eventListener,sender);
+ await this.AzureBareMetalInstancesGet_Call (request, onOk,onDefault,eventListener,sender);
}
}
@@ -71,7 +71,7 @@ public partial class BareMetal
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task AzureBareMetalInstancesGetViaIdentity(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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task AzureBareMetalInstancesGetViaIdentity(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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
{
var apiVersion = @"2021-08-09";
// Constant Parameters
@@ -110,11 +110,169 @@ public partial class BareMetal
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.AzureBareMetalInstancesGet_Call(request,onOk,onDefault,eventListener,sender);
+ await this.AzureBareMetalInstancesGet_Call (request, onOk,onDefault,eventListener,sender);
}
}
- /// Actual wire call for method.
+ ///
+ /// Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ ///
+ ///
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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 AzureBareMetalInstancesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ var apiVersion = @"2021-08-09";
+ // Constant Parameters
+ using( NoSynchronizationContext )
+ {
+ // verify that Identity format is an exact match for uri
+
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
+ if (!_match.Success)
+ {
+ throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}'");
+ }
+
+ // replace URI parameters with values from identity
+ var subscriptionId = _match.Groups["subscriptionId"].Value;
+ var resourceGroupName = _match.Groups["resourceGroupName"].Value;
+ var azureBareMetalInstanceName = _match.Groups["azureBareMetalInstanceName"].Value;
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/subscriptions/"
+ + subscriptionId
+ + "/resourceGroups/"
+ + resourceGroupName
+ + "/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/"
+ + azureBareMetalInstanceName
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // make the call
+ return await this.AzureBareMetalInstancesGetWithResult_Call (request, eventListener,sender);
+ }
+ }
+
+ ///
+ /// Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ ///
+ /// The ID of the target subscription.
+ /// The name of the resource group. The name is case insensitive.
+ /// Name of the Azure BareMetal on Azure instance.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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 AzureBareMetalInstancesGetWithResult(string subscriptionId, string resourceGroupName, string azureBareMetalInstanceName, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ var apiVersion = @"2021-08-09";
+ // Constant Parameters
+ using( NoSynchronizationContext )
+ {
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/subscriptions/"
+ + global::System.Uri.EscapeDataString(subscriptionId)
+ + "/resourceGroups/"
+ + global::System.Uri.EscapeDataString(resourceGroupName)
+ + "/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/"
+ + global::System.Uri.EscapeDataString(azureBareMetalInstanceName)
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // make the call
+ return await this.AzureBareMetalInstancesGetWithResult_Call (request, eventListener,sender);
+ }
+ }
+
+ ///
+ /// Actual wire call for method.
+ ///
+ /// the prepared HttpRequestMessage to send.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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 AzureBareMetalInstancesGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ using( NoSynchronizationContext )
+ {
+ global::System.Net.Http.HttpResponseMessage _response = null;
+ try
+ {
+ var sendTask = sender.SendAsync(request, eventListener);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ _response = await sendTask;
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstance.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) );
+ return await _result;
+ }
+ default:
+ {
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.RestException(_response, await _result);
+ throw ex;
+ }
+ else
+ {
+ throw new global::System.Exception($"[{code}] : {message}");
+ }
+ }
+ }
+ }
+ finally
+ {
+ // finally statements
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.Finally, request, _response);
+ _response?.Dispose();
+ request?.Dispose();
+ }
+ }
+ }
+
+ /// Actual wire call for method.
/// the prepared HttpRequestMessage to send.
/// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
@@ -124,7 +282,7 @@ public partial class BareMetal
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task AzureBareMetalInstancesGet_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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task AzureBareMetalInstancesGet_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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -135,6 +293,7 @@ public partial class BareMetal
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; }
var _contentType = _response.Content.Headers.ContentType?.MediaType;
switch ( _response.StatusCode )
@@ -142,13 +301,13 @@ public partial class BareMetal
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstance.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstance.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -201,7 +360,7 @@ public partial class BareMetal
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task AzureBareMetalInstancesListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task AzureBareMetalInstancesListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
{
var apiVersion = @"2021-08-09";
// Constant Parameters
@@ -227,7 +386,7 @@ public partial class BareMetal
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.AzureBareMetalInstancesListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender);
+ await this.AzureBareMetalInstancesListByResourceGroup_Call (request, onOk,onDefault,eventListener,sender);
}
}
@@ -244,7 +403,7 @@ public partial class BareMetal
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task AzureBareMetalInstancesListByResourceGroupViaIdentity(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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task AzureBareMetalInstancesListByResourceGroupViaIdentity(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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
{
var apiVersion = @"2021-08-09";
// Constant Parameters
@@ -281,12 +440,168 @@ public partial class BareMetal
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.AzureBareMetalInstancesListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender);
+ await this.AzureBareMetalInstancesListByResourceGroup_Call (request, onOk,onDefault,eventListener,sender);
+ }
+ }
+
+ ///
+ /// Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations returns various
+ /// properties of each Azure BareMetal instance.
+ ///
+ ///
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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 AzureBareMetalInstancesListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ var apiVersion = @"2021-08-09";
+ // Constant Parameters
+ using( NoSynchronizationContext )
+ {
+ // verify that Identity format is an exact match for uri
+
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
+ if (!_match.Success)
+ {
+ throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances'");
+ }
+
+ // replace URI parameters with values from identity
+ var subscriptionId = _match.Groups["subscriptionId"].Value;
+ var resourceGroupName = _match.Groups["resourceGroupName"].Value;
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/subscriptions/"
+ + subscriptionId
+ + "/resourceGroups/"
+ + resourceGroupName
+ + "/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances"
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // make the call
+ return await this.AzureBareMetalInstancesListByResourceGroupWithResult_Call (request, eventListener,sender);
+ }
+ }
+
+ ///
+ /// Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations returns various
+ /// properties of each Azure BareMetal instance.
+ ///
+ /// The ID of the target subscription.
+ /// The name of the resource group. The name is case insensitive.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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 AzureBareMetalInstancesListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ var apiVersion = @"2021-08-09";
+ // Constant Parameters
+ using( NoSynchronizationContext )
+ {
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/subscriptions/"
+ + global::System.Uri.EscapeDataString(subscriptionId)
+ + "/resourceGroups/"
+ + global::System.Uri.EscapeDataString(resourceGroupName)
+ + "/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances"
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // make the call
+ return await this.AzureBareMetalInstancesListByResourceGroupWithResult_Call (request, eventListener,sender);
+ }
+ }
+
+ ///
+ /// Actual wire call for method.
+ ///
+ /// the prepared HttpRequestMessage to send.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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 AzureBareMetalInstancesListByResourceGroupWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ using( NoSynchronizationContext )
+ {
+ global::System.Net.Http.HttpResponseMessage _response = null;
+ try
+ {
+ var sendTask = sender.SendAsync(request, eventListener);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ _response = await sendTask;
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstancesListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) );
+ return await _result;
+ }
+ default:
+ {
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.RestException(_response, await _result);
+ throw ex;
+ }
+ else
+ {
+ throw new global::System.Exception($"[{code}] : {message}");
+ }
+ }
+ }
+ }
+ finally
+ {
+ // finally statements
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.Finally, request, _response);
+ _response?.Dispose();
+ request?.Dispose();
+ }
}
}
///
- /// Actual wire call for method.
+ /// Actual wire call for method.
///
/// the prepared HttpRequestMessage to send.
/// a delegate that is called when the remote service returns 200 (OK).
@@ -297,7 +612,7 @@ public partial class BareMetal
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task AzureBareMetalInstancesListByResourceGroup_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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task AzureBareMetalInstancesListByResourceGroup_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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -308,6 +623,7 @@ public partial class BareMetal
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; }
var _contentType = _response.Content.Headers.ContentType?.MediaType;
switch ( _response.StatusCode )
@@ -315,13 +631,13 @@ public partial class BareMetal
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstancesListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstancesListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -371,7 +687,7 @@ public partial class BareMetal
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task AzureBareMetalInstancesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task AzureBareMetalInstancesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
{
var apiVersion = @"2021-08-09";
// Constant Parameters
@@ -395,7 +711,7 @@ public partial class BareMetal
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.AzureBareMetalInstancesListBySubscription_Call(request,onOk,onDefault,eventListener,sender);
+ await this.AzureBareMetalInstancesListBySubscription_Call (request, onOk,onDefault,eventListener,sender);
}
}
@@ -412,7 +728,7 @@ public partial class BareMetal
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task AzureBareMetalInstancesListBySubscriptionViaIdentity(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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task AzureBareMetalInstancesListBySubscriptionViaIdentity(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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
{
var apiVersion = @"2021-08-09";
// Constant Parameters
@@ -446,47 +762,198 @@ public partial class BareMetal
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.AzureBareMetalInstancesListBySubscription_Call(request,onOk,onDefault,eventListener,sender);
+ await this.AzureBareMetalInstancesListBySubscription_Call (request, onOk,onDefault,eventListener,sender);
}
}
///
- /// Actual wire call for method.
+ /// Gets a list of AzureBareMetal instances in the specified subscription. The operations returns various properties of each
+ /// Azure BareMetal instance.
///
- /// the prepared HttpRequestMessage to send.
- /// a delegate that is called when the remote service returns 200 (OK).
- /// a delegate that is called when the remote service returns default (any response code not handled
- /// elsewhere).
+ ///
/// an instance that will receive events.
/// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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 AzureBareMetalInstancesListBySubscription_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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task AzureBareMetalInstancesListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
{
+ var apiVersion = @"2021-08-09";
+ // Constant Parameters
using( NoSynchronizationContext )
{
- global::System.Net.Http.HttpResponseMessage _response = null;
- try
- {
- var sendTask = sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
- _response = await sendTask;
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- var _contentType = _response.Content.Headers.ContentType?.MediaType;
+ // verify that Identity format is an exact match for uri
- switch ( _response.StatusCode )
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
+ if (!_match.Success)
+ {
+ throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances'");
+ }
+
+ // replace URI parameters with values from identity
+ var subscriptionId = _match.Groups["subscriptionId"].Value;
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/subscriptions/"
+ + subscriptionId
+ + "/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances"
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // make the call
+ return await this.AzureBareMetalInstancesListBySubscriptionWithResult_Call (request, eventListener,sender);
+ }
+ }
+
+ ///
+ /// Gets a list of AzureBareMetal instances in the specified subscription. The operations returns various properties of each
+ /// Azure BareMetal instance.
+ ///
+ /// The ID of the target subscription.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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 AzureBareMetalInstancesListBySubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ var apiVersion = @"2021-08-09";
+ // Constant Parameters
+ using( NoSynchronizationContext )
+ {
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/subscriptions/"
+ + global::System.Uri.EscapeDataString(subscriptionId)
+ + "/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances"
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // make the call
+ return await this.AzureBareMetalInstancesListBySubscriptionWithResult_Call (request, eventListener,sender);
+ }
+ }
+
+ ///
+ /// Actual wire call for method.
+ ///
+ /// the prepared HttpRequestMessage to send.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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 AzureBareMetalInstancesListBySubscriptionWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ using( NoSynchronizationContext )
+ {
+ global::System.Net.Http.HttpResponseMessage _response = null;
+ try
+ {
+ var sendTask = sender.SendAsync(request, eventListener);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ _response = await sendTask;
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstancesListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) );
+ return await _result;
+ }
+ default:
+ {
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.RestException(_response, await _result);
+ throw ex;
+ }
+ else
+ {
+ throw new global::System.Exception($"[{code}] : {message}");
+ }
+ }
+ }
+ }
+ finally
+ {
+ // finally statements
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.Finally, request, _response);
+ _response?.Dispose();
+ request?.Dispose();
+ }
+ }
+ }
+
+ ///
+ /// Actual wire call for method.
+ ///
+ /// the prepared HttpRequestMessage to send.
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// a delegate that is called when the remote service returns default (any response code not handled
+ /// elsewhere).
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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 AzureBareMetalInstancesListBySubscription_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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ using( NoSynchronizationContext )
+ {
+ global::System.Net.Http.HttpResponseMessage _response = null;
+ try
+ {
+ var sendTask = sender.SendAsync(request, eventListener);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
+ _response = await sendTask;
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstancesListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstancesListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -531,10 +998,11 @@ public partial class BareMetal
/// elsewhere).
/// an instance that will receive events.
/// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync pipeline to use to make the request.
+ /// Allows the caller to choose the depth of the serialization. See .
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task AzureBareMetalInstancesUpdate(string subscriptionId, string resourceGroupName, string azureBareMetalInstanceName, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ITags1 body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task AzureBareMetalInstancesUpdate(string subscriptionId, string resourceGroupName, string azureBareMetalInstanceName, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITags1 body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeUpdate)
{
var apiVersion = @"2021-08-09";
// Constant Parameters
@@ -561,11 +1029,11 @@ public partial class BareMetal
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// set body content
- request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8);
+ request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8);
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.AzureBareMetalInstancesUpdate_Call(request,onOk,onDefault,eventListener,sender);
+ await this.AzureBareMetalInstancesUpdate_Call (request, onOk,onDefault,eventListener,sender);
}
}
@@ -579,10 +1047,11 @@ public partial class BareMetal
/// elsewhere).
/// an instance that will receive events.
/// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync pipeline to use to make the request.
+ /// Allows the caller to choose the depth of the serialization. See .
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task AzureBareMetalInstancesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ITags1 body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task AzureBareMetalInstancesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITags1 body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeUpdate)
{
var apiVersion = @"2021-08-09";
// Constant Parameters
@@ -621,15 +1090,283 @@ public partial class BareMetal
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// set body content
- request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8);
+ request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8);
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.AzureBareMetalInstancesUpdate_Call(request,onOk,onDefault,eventListener,sender);
+ await this.AzureBareMetalInstancesUpdate_Call (request, onOk,onDefault,eventListener,sender);
+ }
+ }
+
+ ///
+ /// Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ ///
+ ///
+ /// Request body that only contains the new Tags field
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync pipeline to use to make the request.
+ /// Allows the caller to choose the depth of the serialization. See .
+ ///
+ /// A that will be complete when handling of the response is completed.
+ ///
+ public async global::System.Threading.Tasks.Task AzureBareMetalInstancesUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITags1 body, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeUpdate)
+ {
+ var apiVersion = @"2021-08-09";
+ // Constant Parameters
+ using( NoSynchronizationContext )
+ {
+ // verify that Identity format is an exact match for uri
+
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
+ if (!_match.Success)
+ {
+ throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}'");
+ }
+
+ // replace URI parameters with values from identity
+ var subscriptionId = _match.Groups["subscriptionId"].Value;
+ var resourceGroupName = _match.Groups["resourceGroupName"].Value;
+ var azureBareMetalInstanceName = _match.Groups["azureBareMetalInstanceName"].Value;
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/subscriptions/"
+ + subscriptionId
+ + "/resourceGroups/"
+ + resourceGroupName
+ + "/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/"
+ + azureBareMetalInstanceName
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Method.Patch, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // set body content
+ request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8);
+ request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // make the call
+ return await this.AzureBareMetalInstancesUpdateWithResult_Call (request, eventListener,sender);
}
}
- /// Actual wire call for method.
+ ///
+ /// Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ ///
+ /// The ID of the target subscription.
+ /// The name of the resource group. The name is case insensitive.
+ /// Name of the Azure BareMetal on Azure instance.
+ /// Json string supplied to the AzureBareMetalInstancesUpdate operation
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// a delegate that is called when the remote service returns default (any response code not handled
+ /// elsewhere).
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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 AzureBareMetalInstancesUpdateViaJsonString(string subscriptionId, string resourceGroupName, string azureBareMetalInstanceName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ var apiVersion = @"2021-08-09";
+ // Constant Parameters
+ using( NoSynchronizationContext )
+ {
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/subscriptions/"
+ + global::System.Uri.EscapeDataString(subscriptionId)
+ + "/resourceGroups/"
+ + global::System.Uri.EscapeDataString(resourceGroupName)
+ + "/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/"
+ + global::System.Uri.EscapeDataString(azureBareMetalInstanceName)
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Method.Patch, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
+ // set body content
+ request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8);
+ request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
+ // make the call
+ await this.AzureBareMetalInstancesUpdate_Call (request, onOk,onDefault,eventListener,sender);
+ }
+ }
+
+ ///
+ /// Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ ///
+ /// The ID of the target subscription.
+ /// The name of the resource group. The name is case insensitive.
+ /// Name of the Azure BareMetal on Azure instance.
+ /// Json string supplied to the AzureBareMetalInstancesUpdate operation
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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 AzureBareMetalInstancesUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string azureBareMetalInstanceName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ var apiVersion = @"2021-08-09";
+ // Constant Parameters
+ using( NoSynchronizationContext )
+ {
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/subscriptions/"
+ + global::System.Uri.EscapeDataString(subscriptionId)
+ + "/resourceGroups/"
+ + global::System.Uri.EscapeDataString(resourceGroupName)
+ + "/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/"
+ + global::System.Uri.EscapeDataString(azureBareMetalInstanceName)
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Method.Patch, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // set body content
+ request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8);
+ request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // make the call
+ return await this.AzureBareMetalInstancesUpdateWithResult_Call (request, eventListener,sender);
+ }
+ }
+
+ ///
+ /// Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ ///
+ /// The ID of the target subscription.
+ /// The name of the resource group. The name is case insensitive.
+ /// Name of the Azure BareMetal on Azure instance.
+ /// Request body that only contains the new Tags field
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync pipeline to use to make the request.
+ /// Allows the caller to choose the depth of the serialization. See .
+ ///
+ /// A that will be complete when handling of the response is completed.
+ ///
+ public async global::System.Threading.Tasks.Task AzureBareMetalInstancesUpdateWithResult(string subscriptionId, string resourceGroupName, string azureBareMetalInstanceName, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITags1 body, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeUpdate)
+ {
+ var apiVersion = @"2021-08-09";
+ // Constant Parameters
+ using( NoSynchronizationContext )
+ {
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/subscriptions/"
+ + global::System.Uri.EscapeDataString(subscriptionId)
+ + "/resourceGroups/"
+ + global::System.Uri.EscapeDataString(resourceGroupName)
+ + "/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/"
+ + global::System.Uri.EscapeDataString(azureBareMetalInstanceName)
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Method.Patch, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // set body content
+ request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8);
+ request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // make the call
+ return await this.AzureBareMetalInstancesUpdateWithResult_Call (request, eventListener,sender);
+ }
+ }
+
+ ///
+ /// Actual wire call for method.
+ ///
+ /// the prepared HttpRequestMessage to send.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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 AzureBareMetalInstancesUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ using( NoSynchronizationContext )
+ {
+ global::System.Net.Http.HttpResponseMessage _response = null;
+ try
+ {
+ var sendTask = sender.SendAsync(request, eventListener);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ _response = await sendTask;
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstance.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) );
+ return await _result;
+ }
+ default:
+ {
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.RestException(_response, await _result);
+ throw ex;
+ }
+ else
+ {
+ throw new global::System.Exception($"[{code}] : {message}");
+ }
+ }
+ }
+ }
+ finally
+ {
+ // finally statements
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.Finally, request, _response);
+ _response?.Dispose();
+ request?.Dispose();
+ }
+ }
+ }
+
+ /// Actual wire call for method.
/// the prepared HttpRequestMessage to send.
/// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
@@ -639,7 +1376,7 @@ public partial class BareMetal
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task AzureBareMetalInstancesUpdate_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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task AzureBareMetalInstancesUpdate_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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -650,6 +1387,7 @@ public partial class BareMetal
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; }
var _contentType = _response.Content.Headers.ContentType?.MediaType;
switch ( _response.StatusCode )
@@ -657,13 +1395,13 @@ public partial class BareMetal
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstance.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstance.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -690,7 +1428,7 @@ public partial class BareMetal
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task AzureBareMetalInstancesUpdate_Validate(string subscriptionId, string resourceGroupName, string azureBareMetalInstanceName, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ITags1 body, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task AzureBareMetalInstancesUpdate_Validate(string subscriptionId, string resourceGroupName, string azureBareMetalInstanceName, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITags1 body, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -714,7 +1452,7 @@ public partial class BareMetal
///
/// 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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
{
var apiVersion = @"2021-08-09";
// Constant Parameters
@@ -736,7 +1474,7 @@ public partial class BareMetal
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.OperationsList_Call(request,onOk,onDefault,eventListener,sender);
+ await this.OperationsList_Call (request, onOk,onDefault,eventListener,sender);
}
}
@@ -750,7 +1488,7 @@ public partial class BareMetal
///
/// 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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
{
var apiVersion = @"2021-08-09";
// Constant Parameters
@@ -781,11 +1519,147 @@ public partial class BareMetal
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.OperationsList_Call(request,onOk,onDefault,eventListener,sender);
+ await this.OperationsList_Call (request, onOk,onDefault,eventListener,sender);
+ }
+ }
+
+ /// Gets a list of AzureBareMetal management operations.
+ ///
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ var apiVersion = @"2021-08-09";
+ // Constant Parameters
+ using( NoSynchronizationContext )
+ {
+ // verify that Identity format is an exact match for uri
+
+ var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.BareMetalInfrastructure/operations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
+ if (!_match.Success)
+ {
+ throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.BareMetalInfrastructure/operations'");
+ }
+
+ // replace URI parameters with values from identity
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/providers/Microsoft.BareMetalInfrastructure/operations"
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // make the call
+ return await this.OperationsListWithResult_Call (request, eventListener,sender);
+ }
+ }
+
+ /// Gets a list of AzureBareMetal management operations.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ var apiVersion = @"2021-08-09";
+ // Constant Parameters
+ using( NoSynchronizationContext )
+ {
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/providers/Microsoft.BareMetalInfrastructure/operations"
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // make the call
+ return await this.OperationsListWithResult_Call (request, eventListener,sender);
+ }
+ }
+
+ /// Actual wire call for method.
+ /// the prepared HttpRequestMessage to send.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
+ {
+ using( NoSynchronizationContext )
+ {
+ global::System.Net.Http.HttpResponseMessage _response = null;
+ try
+ {
+ var sendTask = sender.SendAsync(request, eventListener);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ _response = await sendTask;
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.OperationList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) );
+ return await _result;
+ }
+ default:
+ {
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.RestException(_response, await _result);
+ throw ex;
+ }
+ else
+ {
+ throw new global::System.Exception($"[{code}] : {message}");
+ }
+ }
+ }
+ }
+ finally
+ {
+ // finally statements
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.Finally, request, _response);
+ _response?.Dispose();
+ request?.Dispose();
+ }
}
}
- /// Actual wire call for method.
+ /// Actual wire call for method.
/// the prepared HttpRequestMessage to send.
/// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
@@ -795,7 +1669,7 @@ public partial class BareMetal
///
/// 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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -806,6 +1680,7 @@ public partial class BareMetal
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; }
var _contentType = _response.Content.Headers.ContentType?.MediaType;
switch ( _response.StatusCode )
@@ -813,13 +1688,13 @@ public partial class BareMetal
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.OperationList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.OperationList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstance.PowerShell.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstance.PowerShell.cs
deleted file mode 100644
index c03126cd33ab..000000000000
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstance.PowerShell.cs
+++ /dev/null
@@ -1,422 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for license information.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
-{
- using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
-
- ///
- /// AzureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties)
- ///
- [System.ComponentModel.TypeConverter(typeof(AzureBareMetalInstanceTypeConverter))]
- public partial class AzureBareMetalInstance
- {
-
- ///
- /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
- /// object before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Collections.IDictionary content that should be used.
-
- partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
-
- ///
- /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
-
- partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
-
- ///
- /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output
- /// parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
-
- ///
- /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output
- /// parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
-
- ///
- /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior
- ///
- /// /// instance serialized to a string, normally it is a Json
- /// /// set returnNow to true if you provide a customized OverrideToString function
-
- partial void OverrideToString(ref string stringResult, ref bool returnNow);
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal AzureBareMetalInstance(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("Property"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstancePropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemData"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("Tag"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom);
- }
- if (content.Contains("Location"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
- }
- if (content.Contains("HardwareProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.HardwareProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("StorageProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.StorageProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("OSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("NetworkProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.NetworkProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)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("AzureBareMetalInstanceId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).AzureBareMetalInstanceId = (string) content.GetValueForProperty("AzureBareMetalInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).AzureBareMetalInstanceId, global::System.Convert.ToString);
- }
- if (content.Contains("PowerState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).PowerState = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum?) content.GetValueForProperty("PowerState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).PowerState, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum.CreateFrom);
- }
- if (content.Contains("ProximityPlacementGroup"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).ProximityPlacementGroup = (string) content.GetValueForProperty("ProximityPlacementGroup",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).ProximityPlacementGroup, global::System.Convert.ToString);
- }
- if (content.Contains("HwRevision"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HwRevision = (string) content.GetValueForProperty("HwRevision",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HwRevision, global::System.Convert.ToString);
- }
- if (content.Contains("PartnerNodeId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).PartnerNodeId = (string) content.GetValueForProperty("PartnerNodeId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).PartnerNodeId, global::System.Convert.ToString);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum.CreateFrom);
- }
- if (content.Contains("StorageProfileOSDisk"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).StorageProfileOSDisk = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk[]) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).StorageProfileOSDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.DiskTypeConverter.ConvertFrom));
- }
- if (content.Contains("NetworkProfileNetworkInterface"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IPAddressTypeConverter.ConvertFrom));
- }
- if (content.Contains("NetworkProfileCircuitId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).NetworkProfileCircuitId = (string) content.GetValueForProperty("NetworkProfileCircuitId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).NetworkProfileCircuitId, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)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("HardwareProfileHardwareType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HardwareProfileHardwareType = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum?) content.GetValueForProperty("HardwareProfileHardwareType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HardwareProfileHardwareType, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum.CreateFrom);
- }
- if (content.Contains("HardwareProfileAzureBareMetalInstanceSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HardwareProfileAzureBareMetalInstanceSize = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum?) content.GetValueForProperty("HardwareProfileAzureBareMetalInstanceSize",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HardwareProfileAzureBareMetalInstanceSize, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum.CreateFrom);
- }
- if (content.Contains("StorageProfileNfsIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).StorageProfileNfsIPAddress = (string) content.GetValueForProperty("StorageProfileNfsIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).StorageProfileNfsIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileComputerName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileComputerName = (string) content.GetValueForProperty("OSProfileComputerName",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileComputerName, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileOstype"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileOstype = (string) content.GetValueForProperty("OSProfileOstype",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileOstype, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileVersion = (string) content.GetValueForProperty("OSProfileVersion",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileVersion, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileSshPublicKey"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileSshPublicKey = (string) content.GetValueForProperty("OSProfileSshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileSshPublicKey, global::System.Convert.ToString);
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal AzureBareMetalInstance(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("Property"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstancePropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemData"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("Tag"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom);
- }
- if (content.Contains("Location"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
- }
- if (content.Contains("HardwareProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.HardwareProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("StorageProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.StorageProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("OSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("NetworkProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.NetworkProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)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("AzureBareMetalInstanceId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).AzureBareMetalInstanceId = (string) content.GetValueForProperty("AzureBareMetalInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).AzureBareMetalInstanceId, global::System.Convert.ToString);
- }
- if (content.Contains("PowerState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).PowerState = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum?) content.GetValueForProperty("PowerState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).PowerState, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum.CreateFrom);
- }
- if (content.Contains("ProximityPlacementGroup"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).ProximityPlacementGroup = (string) content.GetValueForProperty("ProximityPlacementGroup",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).ProximityPlacementGroup, global::System.Convert.ToString);
- }
- if (content.Contains("HwRevision"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HwRevision = (string) content.GetValueForProperty("HwRevision",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HwRevision, global::System.Convert.ToString);
- }
- if (content.Contains("PartnerNodeId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).PartnerNodeId = (string) content.GetValueForProperty("PartnerNodeId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).PartnerNodeId, global::System.Convert.ToString);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum.CreateFrom);
- }
- if (content.Contains("StorageProfileOSDisk"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).StorageProfileOSDisk = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk[]) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).StorageProfileOSDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.DiskTypeConverter.ConvertFrom));
- }
- if (content.Contains("NetworkProfileNetworkInterface"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IPAddressTypeConverter.ConvertFrom));
- }
- if (content.Contains("NetworkProfileCircuitId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).NetworkProfileCircuitId = (string) content.GetValueForProperty("NetworkProfileCircuitId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).NetworkProfileCircuitId, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)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("HardwareProfileHardwareType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HardwareProfileHardwareType = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum?) content.GetValueForProperty("HardwareProfileHardwareType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HardwareProfileHardwareType, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum.CreateFrom);
- }
- if (content.Contains("HardwareProfileAzureBareMetalInstanceSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HardwareProfileAzureBareMetalInstanceSize = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum?) content.GetValueForProperty("HardwareProfileAzureBareMetalInstanceSize",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).HardwareProfileAzureBareMetalInstanceSize, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum.CreateFrom);
- }
- if (content.Contains("StorageProfileNfsIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).StorageProfileNfsIPAddress = (string) content.GetValueForProperty("StorageProfileNfsIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).StorageProfileNfsIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileComputerName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileComputerName = (string) content.GetValueForProperty("OSProfileComputerName",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileComputerName, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileOstype"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileOstype = (string) content.GetValueForProperty("OSProfileOstype",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileOstype, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileVersion = (string) content.GetValueForProperty("OSProfileVersion",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileVersion, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileSshPublicKey"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileSshPublicKey = (string) content.GetValueForProperty("OSProfileSshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal)this).OSProfileSshPublicKey, global::System.Convert.ToString);
- }
- AfterDeserializePSObject(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new AzureBareMetalInstance(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new AzureBareMetalInstance(content);
- }
-
- ///
- /// Creates a new instance of , deserializing the content from a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.SerializationMode.IncludeAll)?.ToString();
-
- public override string ToString()
- {
- var returnNow = false;
- var result = global::System.String.Empty;
- OverrideToString(ref result, ref returnNow);
- if (returnNow)
- {
- return result;
- }
- return ToJsonString();
- }
- }
- /// AzureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties)
- [System.ComponentModel.TypeConverter(typeof(AzureBareMetalInstanceTypeConverter))]
- public partial interface IAzureBareMetalInstance
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstanceProperties.PowerShell.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstanceProperties.PowerShell.cs
deleted file mode 100644
index cc28a3c9ee39..000000000000
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstanceProperties.PowerShell.cs
+++ /dev/null
@@ -1,318 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for license information.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
-{
- using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
-
- /// Describes the properties of an AzureBareMetal instance.
- [System.ComponentModel.TypeConverter(typeof(AzureBareMetalInstancePropertiesTypeConverter))]
- public partial class AzureBareMetalInstanceProperties
- {
-
- ///
- /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
- /// object before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Collections.IDictionary content that should be used.
-
- partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
-
- ///
- /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
-
- partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
-
- ///
- /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output
- /// parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
-
- ///
- /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output
- /// parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
-
- ///
- /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior
- ///
- /// /// instance serialized to a string, normally it is a Json
- /// /// set returnNow to true if you provide a customized OverrideToString function
-
- partial void OverrideToString(ref string stringResult, ref bool returnNow);
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal AzureBareMetalInstanceProperties(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("HardwareProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.HardwareProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("StorageProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.StorageProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("OSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("NetworkProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.NetworkProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("AzureBareMetalInstanceId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).AzureBareMetalInstanceId = (string) content.GetValueForProperty("AzureBareMetalInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).AzureBareMetalInstanceId, global::System.Convert.ToString);
- }
- if (content.Contains("PowerState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).PowerState = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum?) content.GetValueForProperty("PowerState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).PowerState, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum.CreateFrom);
- }
- if (content.Contains("ProximityPlacementGroup"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).ProximityPlacementGroup = (string) content.GetValueForProperty("ProximityPlacementGroup",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).ProximityPlacementGroup, global::System.Convert.ToString);
- }
- if (content.Contains("HwRevision"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HwRevision = (string) content.GetValueForProperty("HwRevision",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HwRevision, global::System.Convert.ToString);
- }
- if (content.Contains("PartnerNodeId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).PartnerNodeId = (string) content.GetValueForProperty("PartnerNodeId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).PartnerNodeId, global::System.Convert.ToString);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum.CreateFrom);
- }
- if (content.Contains("StorageProfileOSDisk"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileOSDisk = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk[]) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileOSDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.DiskTypeConverter.ConvertFrom));
- }
- if (content.Contains("NetworkProfileNetworkInterface"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IPAddressTypeConverter.ConvertFrom));
- }
- if (content.Contains("NetworkProfileCircuitId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileCircuitId = (string) content.GetValueForProperty("NetworkProfileCircuitId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileCircuitId, global::System.Convert.ToString);
- }
- if (content.Contains("HardwareProfileHardwareType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileHardwareType = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum?) content.GetValueForProperty("HardwareProfileHardwareType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileHardwareType, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum.CreateFrom);
- }
- if (content.Contains("HardwareProfileAzureBareMetalInstanceSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileAzureBareMetalInstanceSize = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum?) content.GetValueForProperty("HardwareProfileAzureBareMetalInstanceSize",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileAzureBareMetalInstanceSize, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum.CreateFrom);
- }
- if (content.Contains("StorageProfileNfsIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileNfsIPAddress = (string) content.GetValueForProperty("StorageProfileNfsIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileNfsIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileComputerName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileComputerName = (string) content.GetValueForProperty("OSProfileComputerName",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileComputerName, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileOstype"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileOstype = (string) content.GetValueForProperty("OSProfileOstype",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileOstype, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileVersion = (string) content.GetValueForProperty("OSProfileVersion",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileVersion, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileSshPublicKey"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileSshPublicKey = (string) content.GetValueForProperty("OSProfileSshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileSshPublicKey, global::System.Convert.ToString);
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal AzureBareMetalInstanceProperties(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("HardwareProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.HardwareProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("StorageProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.StorageProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("OSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("NetworkProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.NetworkProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("AzureBareMetalInstanceId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).AzureBareMetalInstanceId = (string) content.GetValueForProperty("AzureBareMetalInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).AzureBareMetalInstanceId, global::System.Convert.ToString);
- }
- if (content.Contains("PowerState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).PowerState = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum?) content.GetValueForProperty("PowerState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).PowerState, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum.CreateFrom);
- }
- if (content.Contains("ProximityPlacementGroup"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).ProximityPlacementGroup = (string) content.GetValueForProperty("ProximityPlacementGroup",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).ProximityPlacementGroup, global::System.Convert.ToString);
- }
- if (content.Contains("HwRevision"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HwRevision = (string) content.GetValueForProperty("HwRevision",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HwRevision, global::System.Convert.ToString);
- }
- if (content.Contains("PartnerNodeId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).PartnerNodeId = (string) content.GetValueForProperty("PartnerNodeId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).PartnerNodeId, global::System.Convert.ToString);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum.CreateFrom);
- }
- if (content.Contains("StorageProfileOSDisk"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileOSDisk = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk[]) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileOSDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.DiskTypeConverter.ConvertFrom));
- }
- if (content.Contains("NetworkProfileNetworkInterface"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IPAddressTypeConverter.ConvertFrom));
- }
- if (content.Contains("NetworkProfileCircuitId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileCircuitId = (string) content.GetValueForProperty("NetworkProfileCircuitId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileCircuitId, global::System.Convert.ToString);
- }
- if (content.Contains("HardwareProfileHardwareType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileHardwareType = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum?) content.GetValueForProperty("HardwareProfileHardwareType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileHardwareType, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum.CreateFrom);
- }
- if (content.Contains("HardwareProfileAzureBareMetalInstanceSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileAzureBareMetalInstanceSize = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum?) content.GetValueForProperty("HardwareProfileAzureBareMetalInstanceSize",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileAzureBareMetalInstanceSize, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum.CreateFrom);
- }
- if (content.Contains("StorageProfileNfsIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileNfsIPAddress = (string) content.GetValueForProperty("StorageProfileNfsIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileNfsIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileComputerName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileComputerName = (string) content.GetValueForProperty("OSProfileComputerName",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileComputerName, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileOstype"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileOstype = (string) content.GetValueForProperty("OSProfileOstype",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileOstype, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileVersion = (string) content.GetValueForProperty("OSProfileVersion",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileVersion, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileSshPublicKey"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileSshPublicKey = (string) content.GetValueForProperty("OSProfileSshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)this).OSProfileSshPublicKey, global::System.Convert.ToString);
- }
- AfterDeserializePSObject(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new AzureBareMetalInstanceProperties(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new AzureBareMetalInstanceProperties(content);
- }
-
- ///
- /// Creates a new instance of , deserializing the content from a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.SerializationMode.IncludeAll)?.ToString();
-
- public override string ToString()
- {
- var returnNow = false;
- var result = global::System.String.Empty;
- OverrideToString(ref result, ref returnNow);
- if (returnNow)
- {
- return result;
- }
- return ToJsonString();
- }
- }
- /// Describes the properties of an AzureBareMetal instance.
- [System.ComponentModel.TypeConverter(typeof(AzureBareMetalInstancePropertiesTypeConverter))]
- public partial interface IAzureBareMetalInstanceProperties
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstance.PowerShell.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstance.PowerShell.cs
new file mode 100644
index 000000000000..5b79dfbdb96c
--- /dev/null
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstance.PowerShell.cs
@@ -0,0 +1,422 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
+
+ ///
+ /// AzureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties)
+ ///
+ [System.ComponentModel.TypeConverter(typeof(AzureBareMetalInstanceTypeConverter))]
+ public partial class AzureBareMetalInstance
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
+
+ ///
+ /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior
+ ///
+ /// /// instance serialized to a string, normally it is a Json
+ /// /// set returnNow to true if you provide a customized OverrideToString function
+
+ partial void OverrideToString(ref string stringResult, ref bool returnNow);
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal AzureBareMetalInstance(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("Property"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstancePropertiesTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SystemData"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.SystemDataTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Id"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ }
+ if (content.Contains("Name"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ }
+ if (content.Contains("Type"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ }
+ if (content.Contains("Tag"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.TrackedResourceTagsTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Location"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
+ }
+ if (content.Contains("HardwareProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.HardwareProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("StorageProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.StorageProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("OSProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.OSProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("NetworkProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.NetworkProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SystemDataCreatedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)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("AzureBareMetalInstanceId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).AzureBareMetalInstanceId = (string) content.GetValueForProperty("AzureBareMetalInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).AzureBareMetalInstanceId, global::System.Convert.ToString);
+ }
+ if (content.Contains("PowerState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).PowerState = (string) content.GetValueForProperty("PowerState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).PowerState, global::System.Convert.ToString);
+ }
+ if (content.Contains("ProximityPlacementGroup"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).ProximityPlacementGroup = (string) content.GetValueForProperty("ProximityPlacementGroup",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).ProximityPlacementGroup, global::System.Convert.ToString);
+ }
+ if (content.Contains("HwRevision"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HwRevision = (string) content.GetValueForProperty("HwRevision",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HwRevision, global::System.Convert.ToString);
+ }
+ if (content.Contains("PartnerNodeId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).PartnerNodeId = (string) content.GetValueForProperty("PartnerNodeId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).PartnerNodeId, global::System.Convert.ToString);
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).ProvisioningState, global::System.Convert.ToString);
+ }
+ if (content.Contains("StorageProfileOSDisk"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).StorageProfileOSDisk = (System.Collections.Generic.List) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).StorageProfileOSDisk, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.DiskTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("NetworkProfileNetworkInterface"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).NetworkProfileNetworkInterface = (System.Collections.Generic.List) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IPAddressTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("NetworkProfileCircuitId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).NetworkProfileCircuitId = (string) content.GetValueForProperty("NetworkProfileCircuitId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).NetworkProfileCircuitId, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)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("HardwareProfileHardwareType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HardwareProfileHardwareType = (string) content.GetValueForProperty("HardwareProfileHardwareType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HardwareProfileHardwareType, global::System.Convert.ToString);
+ }
+ if (content.Contains("HardwareProfileAzureBareMetalInstanceSize"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HardwareProfileAzureBareMetalInstanceSize = (string) content.GetValueForProperty("HardwareProfileAzureBareMetalInstanceSize",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HardwareProfileAzureBareMetalInstanceSize, global::System.Convert.ToString);
+ }
+ if (content.Contains("StorageProfileNfsIPAddress"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).StorageProfileNfsIPAddress = (string) content.GetValueForProperty("StorageProfileNfsIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).StorageProfileNfsIPAddress, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileComputerName"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileComputerName = (string) content.GetValueForProperty("OSProfileComputerName",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileComputerName, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileOstype"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileOstype = (string) content.GetValueForProperty("OSProfileOstype",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileOstype, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileVersion"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileVersion = (string) content.GetValueForProperty("OSProfileVersion",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileVersion, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileSshPublicKey"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileSshPublicKey = (string) content.GetValueForProperty("OSProfileSshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileSshPublicKey, global::System.Convert.ToString);
+ }
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal AzureBareMetalInstance(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("Property"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstancePropertiesTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SystemData"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.SystemDataTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Id"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ }
+ if (content.Contains("Name"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ }
+ if (content.Contains("Type"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ }
+ if (content.Contains("Tag"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.TrackedResourceTagsTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Location"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
+ }
+ if (content.Contains("HardwareProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.HardwareProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("StorageProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.StorageProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("OSProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.OSProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("NetworkProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.NetworkProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SystemDataCreatedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)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("AzureBareMetalInstanceId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).AzureBareMetalInstanceId = (string) content.GetValueForProperty("AzureBareMetalInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).AzureBareMetalInstanceId, global::System.Convert.ToString);
+ }
+ if (content.Contains("PowerState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).PowerState = (string) content.GetValueForProperty("PowerState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).PowerState, global::System.Convert.ToString);
+ }
+ if (content.Contains("ProximityPlacementGroup"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).ProximityPlacementGroup = (string) content.GetValueForProperty("ProximityPlacementGroup",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).ProximityPlacementGroup, global::System.Convert.ToString);
+ }
+ if (content.Contains("HwRevision"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HwRevision = (string) content.GetValueForProperty("HwRevision",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HwRevision, global::System.Convert.ToString);
+ }
+ if (content.Contains("PartnerNodeId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).PartnerNodeId = (string) content.GetValueForProperty("PartnerNodeId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).PartnerNodeId, global::System.Convert.ToString);
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).ProvisioningState, global::System.Convert.ToString);
+ }
+ if (content.Contains("StorageProfileOSDisk"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).StorageProfileOSDisk = (System.Collections.Generic.List) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).StorageProfileOSDisk, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.DiskTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("NetworkProfileNetworkInterface"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).NetworkProfileNetworkInterface = (System.Collections.Generic.List) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IPAddressTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("NetworkProfileCircuitId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).NetworkProfileCircuitId = (string) content.GetValueForProperty("NetworkProfileCircuitId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).NetworkProfileCircuitId, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)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("HardwareProfileHardwareType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HardwareProfileHardwareType = (string) content.GetValueForProperty("HardwareProfileHardwareType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HardwareProfileHardwareType, global::System.Convert.ToString);
+ }
+ if (content.Contains("HardwareProfileAzureBareMetalInstanceSize"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HardwareProfileAzureBareMetalInstanceSize = (string) content.GetValueForProperty("HardwareProfileAzureBareMetalInstanceSize",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).HardwareProfileAzureBareMetalInstanceSize, global::System.Convert.ToString);
+ }
+ if (content.Contains("StorageProfileNfsIPAddress"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).StorageProfileNfsIPAddress = (string) content.GetValueForProperty("StorageProfileNfsIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).StorageProfileNfsIPAddress, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileComputerName"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileComputerName = (string) content.GetValueForProperty("OSProfileComputerName",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileComputerName, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileOstype"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileOstype = (string) content.GetValueForProperty("OSProfileOstype",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileOstype, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileVersion"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileVersion = (string) content.GetValueForProperty("OSProfileVersion",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileVersion, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileSshPublicKey"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileSshPublicKey = (string) content.GetValueForProperty("OSProfileSshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal)this).OSProfileSshPublicKey, global::System.Convert.ToString);
+ }
+ AfterDeserializePSObject(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new AzureBareMetalInstance(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new AzureBareMetalInstance(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.SerializationMode.IncludeAll)?.ToString();
+
+ public override string ToString()
+ {
+ var returnNow = false;
+ var result = global::System.String.Empty;
+ OverrideToString(ref result, ref returnNow);
+ if (returnNow)
+ {
+ return result;
+ }
+ return ToJsonString();
+ }
+ }
+ /// AzureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties)
+ [System.ComponentModel.TypeConverter(typeof(AzureBareMetalInstanceTypeConverter))]
+ public partial interface IAzureBareMetalInstance
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstance.TypeConverter.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstance.TypeConverter.cs
similarity index 97%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstance.TypeConverter.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstance.TypeConverter.cs
index 98b832c97a43..6ed2915ba63e 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstance.TypeConverter.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstance.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstance.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstance.cs
similarity index 53%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstance.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstance.cs
index c91df0915553..8c50b00f3305 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstance.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstance.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
@@ -11,154 +11,171 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
/// AzureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties)
///
public partial class AzureBareMetalInstance :
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance,
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance,
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal,
Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IValidates
{
///
- /// Backing field for Inherited model
+ /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.TrackedResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.TrackedResource();
/// Specifies the AzureBareMetal instance unique ID.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string AzureBareMetalInstanceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).AzureBareMetalInstanceId; }
+ public string AzureBareMetalInstanceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).AzureBareMetalInstanceId; }
/// Specifies the AzureBareMetal instance SKU.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum? HardwareProfileAzureBareMetalInstanceSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfileAzureBareMetalInstanceSize; }
+ public string HardwareProfileAzureBareMetalInstanceSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfileAzureBareMetalInstanceSize; }
/// Name of the hardware type (vendor and/or their product name)
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum? HardwareProfileHardwareType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfileHardwareType; }
+ public string HardwareProfileHardwareType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfileHardwareType; }
/// Hardware revision of an AzureBareMetal instance
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string HwRevision { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).HwRevision; }
+ public string HwRevision { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).HwRevision; }
///
/// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
///
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inherited)]
- public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)__trackedResource).Id; }
+ public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)__trackedResource).Id; }
/// The geo-location where the resource lives
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inherited)]
- public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceInternal)__trackedResource).Location = value ; }
-
- /// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)__trackedResource).Id = value; }
-
- /// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)__trackedResource).Name = value; }
-
- /// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)__trackedResource).Type = value; }
+ public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; }
/// Internal Acessors for AzureBareMetalInstanceId
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.AzureBareMetalInstanceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).AzureBareMetalInstanceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).AzureBareMetalInstanceId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.AzureBareMetalInstanceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).AzureBareMetalInstanceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).AzureBareMetalInstanceId = value; }
/// Internal Acessors for HardwareProfile
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.HardwareProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfile = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.HardwareProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfile = value; }
/// Internal Acessors for HardwareProfileAzureBareMetalInstanceSize
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.HardwareProfileAzureBareMetalInstanceSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfileAzureBareMetalInstanceSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfileAzureBareMetalInstanceSize = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.HardwareProfileAzureBareMetalInstanceSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfileAzureBareMetalInstanceSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfileAzureBareMetalInstanceSize = value; }
/// Internal Acessors for HardwareProfileHardwareType
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.HardwareProfileHardwareType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfileHardwareType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfileHardwareType = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.HardwareProfileHardwareType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfileHardwareType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).HardwareProfileHardwareType = value; }
/// Internal Acessors for HwRevision
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.HwRevision { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).HwRevision; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).HwRevision = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.HwRevision { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).HwRevision; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).HwRevision = value; }
/// Internal Acessors for NetworkProfile
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).NetworkProfile = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).NetworkProfile = value; }
/// Internal Acessors for NetworkProfileCircuitId
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.NetworkProfileCircuitId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).NetworkProfileCircuitId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).NetworkProfileCircuitId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.NetworkProfileCircuitId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).NetworkProfileCircuitId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).NetworkProfileCircuitId = value; }
/// Internal Acessors for OSProfile
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).OSProfile = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).OSProfile = value; }
/// Internal Acessors for OSProfileOstype
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.OSProfileOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileOstype; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileOstype = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.OSProfileOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileOstype; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileOstype = value; }
/// Internal Acessors for OSProfileVersion
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.OSProfileVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileVersion = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.OSProfileVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileVersion = value; }
/// Internal Acessors for PowerState
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.PowerState { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).PowerState; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).PowerState = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.PowerState { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).PowerState; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).PowerState = value; }
/// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstanceProperties()); set { {_property = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstanceProperties()); set { {_property = value;} } }
/// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).ProvisioningState = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).ProvisioningState = value; }
/// Internal Acessors for ProximityPlacementGroup
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.ProximityPlacementGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).ProximityPlacementGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).ProximityPlacementGroup = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.ProximityPlacementGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).ProximityPlacementGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).ProximityPlacementGroup = value; }
/// Internal Acessors for StorageProfile
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).StorageProfile = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).StorageProfile = value; }
/// Internal Acessors for StorageProfileNfsIPAddress
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.StorageProfileNfsIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).StorageProfileNfsIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).StorageProfileNfsIPAddress = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.StorageProfileNfsIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).StorageProfileNfsIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).StorageProfileNfsIPAddress = value; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemData Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.SystemData()); set { {_systemData = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.SystemData()); set { {_systemData = value;} } }
+
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).CreatedAt = value; }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).CreatedBy = value; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).CreatedByType = value; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; }
+
+ /// Internal Acessors for Id
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)__trackedResource).Id = value; }
+
+ /// Internal Acessors for Name
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)__trackedResource).Name = value; }
+
+ /// Internal Acessors for Type
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)__trackedResource).Type = value; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inherited)]
- public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)__trackedResource).Name; }
+ public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)__trackedResource).Name; }
/// Specifies the circuit id for connecting to express route.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string NetworkProfileCircuitId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).NetworkProfileCircuitId; }
+ public string NetworkProfileCircuitId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).NetworkProfileCircuitId; }
/// Specifies the network interfaces for the AzureBareMetal instance.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[] NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).NetworkProfileNetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).NetworkProfileNetworkInterface = value ?? null /* arrayOf */; }
+ public System.Collections.Generic.List NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).NetworkProfileNetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).NetworkProfileNetworkInterface = value ?? null /* arrayOf */; }
/// Specifies the host OS name of the AzureBareMetal instance.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string OSProfileComputerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileComputerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileComputerName = value ?? null; }
+ public string OSProfileComputerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileComputerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileComputerName = value ?? null; }
/// This property allows you to specify the type of the OS.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string OSProfileOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileOstype; }
+ public string OSProfileOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileOstype; }
/// Specifies the SSH public key used to access the operating system.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string OSProfileSshPublicKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileSshPublicKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileSshPublicKey = value ?? null; }
+ public string OSProfileSshPublicKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileSshPublicKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileSshPublicKey = value ?? null; }
/// Specifies version of operating system.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string OSProfileVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileVersion; }
+ public string OSProfileVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).OSProfileVersion; }
///
/// ARM ID of another AzureBareMetalInstance that will share a network with this AzureBareMetalInstance
///
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string PartnerNodeId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).PartnerNodeId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).PartnerNodeId = value ?? null; }
+ public string PartnerNodeId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).PartnerNodeId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).PartnerNodeId = value ?? null; }
/// Resource power state
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum? PowerState { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).PowerState; }
+ public string PowerState { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).PowerState; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties _property;
+ private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties _property;
/// AzureBareMetal instance properties
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstanceProperties()); set => this._property = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstanceProperties()); set => this._property = value; }
/// State of provisioning of the AzureBareMetalInstance
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).ProvisioningState; }
+ public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).ProvisioningState; }
/// Resource proximity placement group
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string ProximityPlacementGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).ProximityPlacementGroup; }
+ public string ProximityPlacementGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).ProximityPlacementGroup; }
/// Gets the resource group name
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
@@ -166,54 +183,54 @@ public partial class AzureBareMetalInstance :
/// IP Address to connect to storage.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string StorageProfileNfsIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).StorageProfileNfsIPAddress; }
+ public string StorageProfileNfsIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).StorageProfileNfsIPAddress; }
///
/// Specifies information about the operating system disk used by baremetal instance.
///
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk[] StorageProfileOSDisk { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).StorageProfileOSDisk; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal)Property).StorageProfileOSDisk = value ?? null /* arrayOf */; }
+ public System.Collections.Generic.List StorageProfileOSDisk { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).StorageProfileOSDisk; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)Property).StorageProfileOSDisk = value ?? null /* arrayOf */; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemData _systemData;
+ private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemData _systemData;
/// The system metadata relating to this resource.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.SystemData()); }
+ internal Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.SystemData()); }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).CreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).CreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType)""); }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).CreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).LastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).LastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType)""); }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ISystemDataInternal)SystemData).LastModifiedByType; }
/// Resource tags.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; }
+ public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
///
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inherited)]
- public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.IResourceInternal)__trackedResource).Type; }
+ public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IResourceInternal)__trackedResource).Type; }
/// Creates an new instance.
public AzureBareMetalInstance()
@@ -236,12 +253,15 @@ public AzureBareMetalInstance()
/// AzureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties)
public partial interface IAzureBareMetalInstance :
Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResource
{
/// Specifies the AzureBareMetal instance unique ID.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Specifies the AzureBareMetal instance unique ID.",
SerializedName = @"azureBareMetalInstanceId",
PossibleTypes = new [] { typeof(string) })]
@@ -250,22 +270,33 @@ public partial interface IAzureBareMetalInstance :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Specifies the AzureBareMetal instance SKU.",
SerializedName = @"azureBareMetalInstanceSize",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum? HardwareProfileAzureBareMetalInstanceSize { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("S72m", "S144m", "S72", "S144", "S192", "S192m", "S192xm", "S96", "S112", "S224", "S224m", "S224om", "S224oo", "S224oom", "S224ooo", "S384", "S384m", "S384xm", "S384xxm", "S448", "S448m", "S448om", "S448oo", "S448oom", "S448ooo", "S576m", "S576xm", "S672", "S672m", "S672om", "S672oo", "S672oom", "S672ooo", "S768", "S768m", "S768xm", "S896", "S896m", "S896om", "S896oo", "S896oom", "S896ooo", "S960m")]
+ string HardwareProfileAzureBareMetalInstanceSize { get; }
/// Name of the hardware type (vendor and/or their product name)
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Name of the hardware type (vendor and/or their product name)",
SerializedName = @"hardwareType",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum? HardwareProfileHardwareType { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("Cisco_UCS", "HPE")]
+ string HardwareProfileHardwareType { get; }
/// Hardware revision of an AzureBareMetal instance
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Hardware revision of an AzureBareMetal instance",
SerializedName = @"hwRevision",
PossibleTypes = new [] { typeof(string) })]
@@ -274,6 +305,9 @@ public partial interface IAzureBareMetalInstance :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Specifies the circuit id for connecting to express route.",
SerializedName = @"circuitId",
PossibleTypes = new [] { typeof(string) })]
@@ -282,14 +316,20 @@ public partial interface IAzureBareMetalInstance :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Specifies the network interfaces for the AzureBareMetal instance.",
SerializedName = @"networkInterfaces",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[] NetworkProfileNetworkInterface { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddress) })]
+ System.Collections.Generic.List NetworkProfileNetworkInterface { get; set; }
/// Specifies the host OS name of the AzureBareMetal instance.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Specifies the host OS name of the AzureBareMetal instance.",
SerializedName = @"computerName",
PossibleTypes = new [] { typeof(string) })]
@@ -298,6 +338,9 @@ public partial interface IAzureBareMetalInstance :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"This property allows you to specify the type of the OS.",
SerializedName = @"osType",
PossibleTypes = new [] { typeof(string) })]
@@ -306,6 +349,9 @@ public partial interface IAzureBareMetalInstance :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Specifies the SSH public key used to access the operating system.",
SerializedName = @"sshPublicKey",
PossibleTypes = new [] { typeof(string) })]
@@ -314,6 +360,9 @@ public partial interface IAzureBareMetalInstance :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Specifies version of operating system.",
SerializedName = @"version",
PossibleTypes = new [] { typeof(string) })]
@@ -324,6 +373,9 @@ public partial interface IAzureBareMetalInstance :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"ARM ID of another AzureBareMetalInstance that will share a network with this AzureBareMetalInstance",
SerializedName = @"partnerNodeId",
PossibleTypes = new [] { typeof(string) })]
@@ -332,22 +384,33 @@ public partial interface IAzureBareMetalInstance :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Resource power state",
SerializedName = @"powerState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum? PowerState { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("starting", "started", "stopping", "stopped", "restarting", "unknown")]
+ string PowerState { get; }
/// State of provisioning of the AzureBareMetalInstance
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"State of provisioning of the AzureBareMetalInstance",
SerializedName = @"provisioningState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum? ProvisioningState { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("Accepted", "Creating", "Updating", "Failed", "Succeeded", "Deleting", "Migrating")]
+ string ProvisioningState { get; }
/// Resource proximity placement group
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Resource proximity placement group",
SerializedName = @"proximityPlacementGroup",
PossibleTypes = new [] { typeof(string) })]
@@ -356,6 +419,9 @@ public partial interface IAzureBareMetalInstance :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"IP Address to connect to storage.",
SerializedName = @"nfsIpAddress",
PossibleTypes = new [] { typeof(string) })]
@@ -366,82 +432,107 @@ public partial interface IAzureBareMetalInstance :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Specifies information about the operating system disk used by baremetal instance.",
SerializedName = @"osDisks",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk[] StorageProfileOSDisk { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisk) })]
+ System.Collections.Generic.List StorageProfileOSDisk { get; set; }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The timestamp of resource creation (UTC).",
SerializedName = @"createdAt",
PossibleTypes = new [] { typeof(global::System.DateTime) })]
- global::System.DateTime? SystemDataCreatedAt { get; set; }
+ global::System.DateTime? SystemDataCreatedAt { get; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The identity that created the resource.",
SerializedName = @"createdBy",
PossibleTypes = new [] { typeof(string) })]
- string SystemDataCreatedBy { get; set; }
+ string SystemDataCreatedBy { get; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The type of identity that created the resource.",
SerializedName = @"createdByType",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType? SystemDataCreatedByType { get; set; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string SystemDataCreatedByType { get; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The timestamp of resource last modification (UTC)",
SerializedName = @"lastModifiedAt",
PossibleTypes = new [] { typeof(global::System.DateTime) })]
- global::System.DateTime? SystemDataLastModifiedAt { get; set; }
+ global::System.DateTime? SystemDataLastModifiedAt { get; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The identity that last modified the resource.",
SerializedName = @"lastModifiedBy",
PossibleTypes = new [] { typeof(string) })]
- string SystemDataLastModifiedBy { get; set; }
+ string SystemDataLastModifiedBy { get; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The type of identity that last modified the resource.",
SerializedName = @"lastModifiedByType",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType? SystemDataLastModifiedByType { get; set; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string SystemDataLastModifiedByType { get; }
}
/// AzureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties)
internal partial interface IAzureBareMetalInstanceInternal :
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ITrackedResourceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ITrackedResourceInternal
{
/// Specifies the AzureBareMetal instance unique ID.
string AzureBareMetalInstanceId { get; set; }
/// Specifies the hardware settings for the AzureBareMetal instance.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile HardwareProfile { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile HardwareProfile { get; set; }
/// Specifies the AzureBareMetal instance SKU.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum? HardwareProfileAzureBareMetalInstanceSize { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("S72m", "S144m", "S72", "S144", "S192", "S192m", "S192xm", "S96", "S112", "S224", "S224m", "S224om", "S224oo", "S224oom", "S224ooo", "S384", "S384m", "S384xm", "S384xxm", "S448", "S448m", "S448om", "S448oo", "S448oom", "S448ooo", "S576m", "S576xm", "S672", "S672m", "S672om", "S672oo", "S672oom", "S672ooo", "S768", "S768m", "S768xm", "S896", "S896m", "S896om", "S896oo", "S896oom", "S896ooo", "S960m")]
+ string HardwareProfileAzureBareMetalInstanceSize { get; set; }
/// Name of the hardware type (vendor and/or their product name)
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum? HardwareProfileHardwareType { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("Cisco_UCS", "HPE")]
+ string HardwareProfileHardwareType { get; set; }
/// Hardware revision of an AzureBareMetal instance
string HwRevision { get; set; }
/// Specifies the network settings for the AzureBareMetal instance.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile NetworkProfile { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile NetworkProfile { get; set; }
/// Specifies the circuit id for connecting to express route.
string NetworkProfileCircuitId { get; set; }
/// Specifies the network interfaces for the AzureBareMetal instance.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[] NetworkProfileNetworkInterface { get; set; }
+ System.Collections.Generic.List NetworkProfileNetworkInterface { get; set; }
/// Specifies the operating system settings for the AzureBareMetal instance.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile OSProfile { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile OSProfile { get; set; }
/// Specifies the host OS name of the AzureBareMetal instance.
string OSProfileComputerName { get; set; }
/// This property allows you to specify the type of the OS.
@@ -455,35 +546,39 @@ internal partial interface IAzureBareMetalInstanceInternal :
///
string PartnerNodeId { get; set; }
/// Resource power state
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum? PowerState { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("starting", "started", "stopping", "stopped", "restarting", "unknown")]
+ string PowerState { get; set; }
/// AzureBareMetal instance properties
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties Property { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties Property { get; set; }
/// State of provisioning of the AzureBareMetalInstance
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum? ProvisioningState { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("Accepted", "Creating", "Updating", "Failed", "Succeeded", "Deleting", "Migrating")]
+ string ProvisioningState { get; set; }
/// Resource proximity placement group
string ProximityPlacementGroup { get; set; }
/// Specifies the storage settings for the AzureBareMetal instance disks.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfile StorageProfile { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfile StorageProfile { get; set; }
/// IP Address to connect to storage.
string StorageProfileNfsIPAddress { get; set; }
///
/// Specifies information about the operating system disk used by baremetal instance.
///
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk[] StorageProfileOSDisk { get; set; }
+ System.Collections.Generic.List StorageProfileOSDisk { get; set; }
/// The system metadata relating to this resource.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.ISystemData SystemData { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType? SystemDataCreatedByType { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.CreatedByType? SystemDataLastModifiedByType { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string SystemDataLastModifiedByType { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstance.json.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstance.json.cs
similarity index 91%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstance.json.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstance.json.cs
index 0b43d1b04c32..5ede5a0ae175 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstance.json.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstance.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
@@ -67,20 +67,20 @@ internal AzureBareMetalInstance(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Run
{
return;
}
- __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.TrackedResource(json);
- {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstanceProperties.FromJson(__jsonProperties) : Property;}
- {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.SystemData.FromJson(__jsonSystemData) : SystemData;}
+ __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.TrackedResource(json);
+ {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstanceProperties.FromJson(__jsonProperties) : _property;}
+ {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.SystemData.FromJson(__jsonSystemData) : _systemData;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json ? new AzureBareMetalInstance(json) : null;
}
@@ -106,7 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode ToJson
}
__trackedResource?.ToJson(container, serializationMode);
AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add );
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add );
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstanceProperties.PowerShell.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstanceProperties.PowerShell.cs
new file mode 100644
index 000000000000..e74e969cd8c9
--- /dev/null
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstanceProperties.PowerShell.cs
@@ -0,0 +1,316 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
+
+ /// Describes the properties of an AzureBareMetal instance.
+ [System.ComponentModel.TypeConverter(typeof(AzureBareMetalInstancePropertiesTypeConverter))]
+ public partial class AzureBareMetalInstanceProperties
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
+
+ ///
+ /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior
+ ///
+ /// /// instance serialized to a string, normally it is a Json
+ /// /// set returnNow to true if you provide a customized OverrideToString function
+
+ partial void OverrideToString(ref string stringResult, ref bool returnNow);
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal AzureBareMetalInstanceProperties(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("HardwareProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.HardwareProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("StorageProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.StorageProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("OSProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.OSProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("NetworkProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.NetworkProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("AzureBareMetalInstanceId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).AzureBareMetalInstanceId = (string) content.GetValueForProperty("AzureBareMetalInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).AzureBareMetalInstanceId, global::System.Convert.ToString);
+ }
+ if (content.Contains("PowerState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).PowerState = (string) content.GetValueForProperty("PowerState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).PowerState, global::System.Convert.ToString);
+ }
+ if (content.Contains("ProximityPlacementGroup"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).ProximityPlacementGroup = (string) content.GetValueForProperty("ProximityPlacementGroup",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).ProximityPlacementGroup, global::System.Convert.ToString);
+ }
+ if (content.Contains("HwRevision"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HwRevision = (string) content.GetValueForProperty("HwRevision",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HwRevision, global::System.Convert.ToString);
+ }
+ if (content.Contains("PartnerNodeId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).PartnerNodeId = (string) content.GetValueForProperty("PartnerNodeId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).PartnerNodeId, global::System.Convert.ToString);
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString);
+ }
+ if (content.Contains("StorageProfileOSDisk"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileOSDisk = (System.Collections.Generic.List) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileOSDisk, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.DiskTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("NetworkProfileNetworkInterface"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileNetworkInterface = (System.Collections.Generic.List) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IPAddressTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("NetworkProfileCircuitId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileCircuitId = (string) content.GetValueForProperty("NetworkProfileCircuitId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileCircuitId, global::System.Convert.ToString);
+ }
+ if (content.Contains("HardwareProfileHardwareType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileHardwareType = (string) content.GetValueForProperty("HardwareProfileHardwareType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileHardwareType, global::System.Convert.ToString);
+ }
+ if (content.Contains("HardwareProfileAzureBareMetalInstanceSize"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileAzureBareMetalInstanceSize = (string) content.GetValueForProperty("HardwareProfileAzureBareMetalInstanceSize",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileAzureBareMetalInstanceSize, global::System.Convert.ToString);
+ }
+ if (content.Contains("StorageProfileNfsIPAddress"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileNfsIPAddress = (string) content.GetValueForProperty("StorageProfileNfsIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileNfsIPAddress, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileComputerName"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileComputerName = (string) content.GetValueForProperty("OSProfileComputerName",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileComputerName, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileOstype"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileOstype = (string) content.GetValueForProperty("OSProfileOstype",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileOstype, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileVersion"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileVersion = (string) content.GetValueForProperty("OSProfileVersion",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileVersion, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileSshPublicKey"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileSshPublicKey = (string) content.GetValueForProperty("OSProfileSshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileSshPublicKey, global::System.Convert.ToString);
+ }
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal AzureBareMetalInstanceProperties(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("HardwareProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.HardwareProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("StorageProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.StorageProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("OSProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.OSProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("NetworkProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.NetworkProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("AzureBareMetalInstanceId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).AzureBareMetalInstanceId = (string) content.GetValueForProperty("AzureBareMetalInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).AzureBareMetalInstanceId, global::System.Convert.ToString);
+ }
+ if (content.Contains("PowerState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).PowerState = (string) content.GetValueForProperty("PowerState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).PowerState, global::System.Convert.ToString);
+ }
+ if (content.Contains("ProximityPlacementGroup"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).ProximityPlacementGroup = (string) content.GetValueForProperty("ProximityPlacementGroup",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).ProximityPlacementGroup, global::System.Convert.ToString);
+ }
+ if (content.Contains("HwRevision"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HwRevision = (string) content.GetValueForProperty("HwRevision",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HwRevision, global::System.Convert.ToString);
+ }
+ if (content.Contains("PartnerNodeId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).PartnerNodeId = (string) content.GetValueForProperty("PartnerNodeId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).PartnerNodeId, global::System.Convert.ToString);
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString);
+ }
+ if (content.Contains("StorageProfileOSDisk"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileOSDisk = (System.Collections.Generic.List) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileOSDisk, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.DiskTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("NetworkProfileNetworkInterface"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileNetworkInterface = (System.Collections.Generic.List) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IPAddressTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("NetworkProfileCircuitId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileCircuitId = (string) content.GetValueForProperty("NetworkProfileCircuitId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).NetworkProfileCircuitId, global::System.Convert.ToString);
+ }
+ if (content.Contains("HardwareProfileHardwareType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileHardwareType = (string) content.GetValueForProperty("HardwareProfileHardwareType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileHardwareType, global::System.Convert.ToString);
+ }
+ if (content.Contains("HardwareProfileAzureBareMetalInstanceSize"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileAzureBareMetalInstanceSize = (string) content.GetValueForProperty("HardwareProfileAzureBareMetalInstanceSize",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).HardwareProfileAzureBareMetalInstanceSize, global::System.Convert.ToString);
+ }
+ if (content.Contains("StorageProfileNfsIPAddress"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileNfsIPAddress = (string) content.GetValueForProperty("StorageProfileNfsIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).StorageProfileNfsIPAddress, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileComputerName"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileComputerName = (string) content.GetValueForProperty("OSProfileComputerName",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileComputerName, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileOstype"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileOstype = (string) content.GetValueForProperty("OSProfileOstype",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileOstype, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileVersion"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileVersion = (string) content.GetValueForProperty("OSProfileVersion",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileVersion, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileSshPublicKey"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileSshPublicKey = (string) content.GetValueForProperty("OSProfileSshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal)this).OSProfileSshPublicKey, global::System.Convert.ToString);
+ }
+ AfterDeserializePSObject(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new AzureBareMetalInstanceProperties(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new AzureBareMetalInstanceProperties(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.SerializationMode.IncludeAll)?.ToString();
+
+ public override string ToString()
+ {
+ var returnNow = false;
+ var result = global::System.String.Empty;
+ OverrideToString(ref result, ref returnNow);
+ if (returnNow)
+ {
+ return result;
+ }
+ return ToJsonString();
+ }
+ }
+ /// Describes the properties of an AzureBareMetal instance.
+ [System.ComponentModel.TypeConverter(typeof(AzureBareMetalInstancePropertiesTypeConverter))]
+ public partial interface IAzureBareMetalInstanceProperties
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstanceProperties.TypeConverter.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstanceProperties.TypeConverter.cs
similarity index 96%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstanceProperties.TypeConverter.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstanceProperties.TypeConverter.cs
index 7580a349ff02..a17d03cc8f51 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstanceProperties.TypeConverter.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstanceProperties.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstanceProperties.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstanceProperties.cs
similarity index 59%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstanceProperties.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstanceProperties.cs
index dbf23aaba7f1..9efcaf2390f3 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstanceProperties.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstanceProperties.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
/// Describes the properties of an AzureBareMetal instance.
public partial class AzureBareMetalInstanceProperties :
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties,
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal
{
/// Backing field for property.
@@ -21,19 +21,19 @@ public partial class AzureBareMetalInstanceProperties :
public string AzureBareMetalInstanceId { get => this._azureBareMetalInstanceId; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile _hardwareProfile;
+ private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile _hardwareProfile;
/// Specifies the hardware settings for the AzureBareMetal instance.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile HardwareProfile { get => (this._hardwareProfile = this._hardwareProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.HardwareProfile()); set => this._hardwareProfile = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile HardwareProfile { get => (this._hardwareProfile = this._hardwareProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.HardwareProfile()); set => this._hardwareProfile = value; }
/// Specifies the AzureBareMetal instance SKU.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum? HardwareProfileAzureBareMetalInstanceSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal)HardwareProfile).AzureBareMetalInstanceSize; }
+ public string HardwareProfileAzureBareMetalInstanceSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal)HardwareProfile).AzureBareMetalInstanceSize; }
/// Name of the hardware type (vendor and/or their product name)
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum? HardwareProfileHardwareType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal)HardwareProfile).HardwareType; }
+ public string HardwareProfileHardwareType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal)HardwareProfile).HardwareType; }
/// Backing field for property.
private string _hwRevision;
@@ -43,87 +43,87 @@ public partial class AzureBareMetalInstanceProperties :
public string HwRevision { get => this._hwRevision; }
/// Internal Acessors for AzureBareMetalInstanceId
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.AzureBareMetalInstanceId { get => this._azureBareMetalInstanceId; set { {_azureBareMetalInstanceId = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.AzureBareMetalInstanceId { get => this._azureBareMetalInstanceId; set { {_azureBareMetalInstanceId = value;} } }
/// Internal Acessors for HardwareProfile
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.HardwareProfile { get => (this._hardwareProfile = this._hardwareProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.HardwareProfile()); set { {_hardwareProfile = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.HardwareProfile { get => (this._hardwareProfile = this._hardwareProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.HardwareProfile()); set { {_hardwareProfile = value;} } }
/// Internal Acessors for HardwareProfileAzureBareMetalInstanceSize
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.HardwareProfileAzureBareMetalInstanceSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal)HardwareProfile).AzureBareMetalInstanceSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal)HardwareProfile).AzureBareMetalInstanceSize = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.HardwareProfileAzureBareMetalInstanceSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal)HardwareProfile).AzureBareMetalInstanceSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal)HardwareProfile).AzureBareMetalInstanceSize = value; }
/// Internal Acessors for HardwareProfileHardwareType
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.HardwareProfileHardwareType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal)HardwareProfile).HardwareType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal)HardwareProfile).HardwareType = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.HardwareProfileHardwareType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal)HardwareProfile).HardwareType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal)HardwareProfile).HardwareType = value; }
/// Internal Acessors for HwRevision
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.HwRevision { get => this._hwRevision; set { {_hwRevision = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.HwRevision { get => this._hwRevision; set { {_hwRevision = value;} } }
/// Internal Acessors for NetworkProfile
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.NetworkProfile()); set { {_networkProfile = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.NetworkProfile()); set { {_networkProfile = value;} } }
/// Internal Acessors for NetworkProfileCircuitId
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.NetworkProfileCircuitId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal)NetworkProfile).CircuitId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal)NetworkProfile).CircuitId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.NetworkProfileCircuitId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal)NetworkProfile).CircuitId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal)NetworkProfile).CircuitId = value; }
/// Internal Acessors for OSProfile
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.OSProfile { get => (this._oSProfile = this._oSProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.OSProfile()); set { {_oSProfile = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.OSProfile { get => (this._oSProfile = this._oSProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.OSProfile()); set { {_oSProfile = value;} } }
/// Internal Acessors for OSProfileOstype
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.OSProfileOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)OSProfile).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)OSProfile).OSType = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.OSProfileOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)OSProfile).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)OSProfile).OSType = value; }
/// Internal Acessors for OSProfileVersion
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.OSProfileVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)OSProfile).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)OSProfile).Version = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.OSProfileVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)OSProfile).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)OSProfile).Version = value; }
/// Internal Acessors for PowerState
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.PowerState { get => this._powerState; set { {_powerState = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.PowerState { get => this._powerState; set { {_powerState = value;} } }
/// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
/// Internal Acessors for ProximityPlacementGroup
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.ProximityPlacementGroup { get => this._proximityPlacementGroup; set { {_proximityPlacementGroup = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.ProximityPlacementGroup { get => this._proximityPlacementGroup; set { {_proximityPlacementGroup = value;} } }
/// Internal Acessors for StorageProfile
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.StorageProfile()); set { {_storageProfile = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfile Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.StorageProfile()); set { {_storageProfile = value;} } }
/// Internal Acessors for StorageProfileNfsIPAddress
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancePropertiesInternal.StorageProfileNfsIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfileInternal)StorageProfile).NfsIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfileInternal)StorageProfile).NfsIPAddress = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancePropertiesInternal.StorageProfileNfsIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfileInternal)StorageProfile).NfsIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfileInternal)StorageProfile).NfsIPAddress = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile _networkProfile;
+ private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile _networkProfile;
/// Specifies the network settings for the AzureBareMetal instance.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.NetworkProfile()); set => this._networkProfile = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.NetworkProfile()); set => this._networkProfile = value; }
/// Specifies the circuit id for connecting to express route.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string NetworkProfileCircuitId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal)NetworkProfile).CircuitId; }
+ public string NetworkProfileCircuitId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal)NetworkProfile).CircuitId; }
/// Specifies the network interfaces for the AzureBareMetal instance.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[] NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal)NetworkProfile).NetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal)NetworkProfile).NetworkInterface = value ?? null /* arrayOf */; }
+ public System.Collections.Generic.List NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal)NetworkProfile).NetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal)NetworkProfile).NetworkInterface = value ?? null /* arrayOf */; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile _oSProfile;
+ private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile _oSProfile;
/// Specifies the operating system settings for the AzureBareMetal instance.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile OSProfile { get => (this._oSProfile = this._oSProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.OSProfile()); set => this._oSProfile = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile OSProfile { get => (this._oSProfile = this._oSProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.OSProfile()); set => this._oSProfile = value; }
/// Specifies the host OS name of the AzureBareMetal instance.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string OSProfileComputerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)OSProfile).ComputerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)OSProfile).ComputerName = value ?? null; }
+ public string OSProfileComputerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)OSProfile).ComputerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)OSProfile).ComputerName = value ?? null; }
/// This property allows you to specify the type of the OS.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string OSProfileOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)OSProfile).OSType; }
+ public string OSProfileOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)OSProfile).OSType; }
/// Specifies the SSH public key used to access the operating system.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string OSProfileSshPublicKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)OSProfile).SshPublicKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)OSProfile).SshPublicKey = value ?? null; }
+ public string OSProfileSshPublicKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)OSProfile).SshPublicKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)OSProfile).SshPublicKey = value ?? null; }
/// Specifies version of operating system.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string OSProfileVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)OSProfile).Version; }
+ public string OSProfileVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)OSProfile).Version; }
/// Backing field for property.
private string _partnerNodeId;
@@ -135,18 +135,18 @@ public partial class AzureBareMetalInstanceProperties :
public string PartnerNodeId { get => this._partnerNodeId; set => this._partnerNodeId = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum? _powerState;
+ private string _powerState;
/// Resource power state
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum? PowerState { get => this._powerState; }
+ public string PowerState { get => this._powerState; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum? _provisioningState;
+ private string _provisioningState;
/// State of provisioning of the AzureBareMetalInstance
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum? ProvisioningState { get => this._provisioningState; }
+ public string ProvisioningState { get => this._provisioningState; }
/// Backing field for property.
private string _proximityPlacementGroup;
@@ -156,21 +156,21 @@ public partial class AzureBareMetalInstanceProperties :
public string ProximityPlacementGroup { get => this._proximityPlacementGroup; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfile _storageProfile;
+ private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfile _storageProfile;
/// Specifies the storage settings for the AzureBareMetal instance disks.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfile StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.StorageProfile()); set => this._storageProfile = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfile StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.StorageProfile()); set => this._storageProfile = value; }
/// IP Address to connect to storage.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string StorageProfileNfsIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfileInternal)StorageProfile).NfsIPAddress; }
+ public string StorageProfileNfsIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfileInternal)StorageProfile).NfsIPAddress; }
///
/// Specifies information about the operating system disk used by baremetal instance.
///
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk[] StorageProfileOSDisk { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfileInternal)StorageProfile).OSDisk; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfileInternal)StorageProfile).OSDisk = value ?? null /* arrayOf */; }
+ public System.Collections.Generic.List StorageProfileOSDisk { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfileInternal)StorageProfile).OSDisk; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfileInternal)StorageProfile).OSDisk = value ?? null /* arrayOf */; }
/// Creates an new instance.
public AzureBareMetalInstanceProperties()
@@ -186,6 +186,9 @@ public partial interface IAzureBareMetalInstanceProperties :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Specifies the AzureBareMetal instance unique ID.",
SerializedName = @"azureBareMetalInstanceId",
PossibleTypes = new [] { typeof(string) })]
@@ -194,22 +197,33 @@ public partial interface IAzureBareMetalInstanceProperties :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Specifies the AzureBareMetal instance SKU.",
SerializedName = @"azureBareMetalInstanceSize",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum? HardwareProfileAzureBareMetalInstanceSize { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("S72m", "S144m", "S72", "S144", "S192", "S192m", "S192xm", "S96", "S112", "S224", "S224m", "S224om", "S224oo", "S224oom", "S224ooo", "S384", "S384m", "S384xm", "S384xxm", "S448", "S448m", "S448om", "S448oo", "S448oom", "S448ooo", "S576m", "S576xm", "S672", "S672m", "S672om", "S672oo", "S672oom", "S672ooo", "S768", "S768m", "S768xm", "S896", "S896m", "S896om", "S896oo", "S896oom", "S896ooo", "S960m")]
+ string HardwareProfileAzureBareMetalInstanceSize { get; }
/// Name of the hardware type (vendor and/or their product name)
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Name of the hardware type (vendor and/or their product name)",
SerializedName = @"hardwareType",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum? HardwareProfileHardwareType { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("Cisco_UCS", "HPE")]
+ string HardwareProfileHardwareType { get; }
/// Hardware revision of an AzureBareMetal instance
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Hardware revision of an AzureBareMetal instance",
SerializedName = @"hwRevision",
PossibleTypes = new [] { typeof(string) })]
@@ -218,6 +232,9 @@ public partial interface IAzureBareMetalInstanceProperties :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Specifies the circuit id for connecting to express route.",
SerializedName = @"circuitId",
PossibleTypes = new [] { typeof(string) })]
@@ -226,14 +243,20 @@ public partial interface IAzureBareMetalInstanceProperties :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Specifies the network interfaces for the AzureBareMetal instance.",
SerializedName = @"networkInterfaces",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[] NetworkProfileNetworkInterface { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddress) })]
+ System.Collections.Generic.List NetworkProfileNetworkInterface { get; set; }
/// Specifies the host OS name of the AzureBareMetal instance.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Specifies the host OS name of the AzureBareMetal instance.",
SerializedName = @"computerName",
PossibleTypes = new [] { typeof(string) })]
@@ -242,6 +265,9 @@ public partial interface IAzureBareMetalInstanceProperties :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"This property allows you to specify the type of the OS.",
SerializedName = @"osType",
PossibleTypes = new [] { typeof(string) })]
@@ -250,6 +276,9 @@ public partial interface IAzureBareMetalInstanceProperties :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Specifies the SSH public key used to access the operating system.",
SerializedName = @"sshPublicKey",
PossibleTypes = new [] { typeof(string) })]
@@ -258,6 +287,9 @@ public partial interface IAzureBareMetalInstanceProperties :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Specifies version of operating system.",
SerializedName = @"version",
PossibleTypes = new [] { typeof(string) })]
@@ -268,6 +300,9 @@ public partial interface IAzureBareMetalInstanceProperties :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"ARM ID of another AzureBareMetalInstance that will share a network with this AzureBareMetalInstance",
SerializedName = @"partnerNodeId",
PossibleTypes = new [] { typeof(string) })]
@@ -276,22 +311,33 @@ public partial interface IAzureBareMetalInstanceProperties :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Resource power state",
SerializedName = @"powerState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum? PowerState { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("starting", "started", "stopping", "stopped", "restarting", "unknown")]
+ string PowerState { get; }
/// State of provisioning of the AzureBareMetalInstance
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"State of provisioning of the AzureBareMetalInstance",
SerializedName = @"provisioningState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum? ProvisioningState { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("Accepted", "Creating", "Updating", "Failed", "Succeeded", "Deleting", "Migrating")]
+ string ProvisioningState { get; }
/// Resource proximity placement group
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Resource proximity placement group",
SerializedName = @"proximityPlacementGroup",
PossibleTypes = new [] { typeof(string) })]
@@ -300,6 +346,9 @@ public partial interface IAzureBareMetalInstanceProperties :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"IP Address to connect to storage.",
SerializedName = @"nfsIpAddress",
PossibleTypes = new [] { typeof(string) })]
@@ -310,10 +359,13 @@ public partial interface IAzureBareMetalInstanceProperties :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Specifies information about the operating system disk used by baremetal instance.",
SerializedName = @"osDisks",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk[] StorageProfileOSDisk { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisk) })]
+ System.Collections.Generic.List StorageProfileOSDisk { get; set; }
}
/// Describes the properties of an AzureBareMetal instance.
@@ -323,21 +375,23 @@ internal partial interface IAzureBareMetalInstancePropertiesInternal
/// Specifies the AzureBareMetal instance unique ID.
string AzureBareMetalInstanceId { get; set; }
/// Specifies the hardware settings for the AzureBareMetal instance.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile HardwareProfile { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile HardwareProfile { get; set; }
/// Specifies the AzureBareMetal instance SKU.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum? HardwareProfileAzureBareMetalInstanceSize { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("S72m", "S144m", "S72", "S144", "S192", "S192m", "S192xm", "S96", "S112", "S224", "S224m", "S224om", "S224oo", "S224oom", "S224ooo", "S384", "S384m", "S384xm", "S384xxm", "S448", "S448m", "S448om", "S448oo", "S448oom", "S448ooo", "S576m", "S576xm", "S672", "S672m", "S672om", "S672oo", "S672oom", "S672ooo", "S768", "S768m", "S768xm", "S896", "S896m", "S896om", "S896oo", "S896oom", "S896ooo", "S960m")]
+ string HardwareProfileAzureBareMetalInstanceSize { get; set; }
/// Name of the hardware type (vendor and/or their product name)
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum? HardwareProfileHardwareType { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("Cisco_UCS", "HPE")]
+ string HardwareProfileHardwareType { get; set; }
/// Hardware revision of an AzureBareMetal instance
string HwRevision { get; set; }
/// Specifies the network settings for the AzureBareMetal instance.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile NetworkProfile { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile NetworkProfile { get; set; }
/// Specifies the circuit id for connecting to express route.
string NetworkProfileCircuitId { get; set; }
/// Specifies the network interfaces for the AzureBareMetal instance.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[] NetworkProfileNetworkInterface { get; set; }
+ System.Collections.Generic.List NetworkProfileNetworkInterface { get; set; }
/// Specifies the operating system settings for the AzureBareMetal instance.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile OSProfile { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile OSProfile { get; set; }
/// Specifies the host OS name of the AzureBareMetal instance.
string OSProfileComputerName { get; set; }
/// This property allows you to specify the type of the OS.
@@ -351,19 +405,21 @@ internal partial interface IAzureBareMetalInstancePropertiesInternal
///
string PartnerNodeId { get; set; }
/// Resource power state
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstancePowerStateEnum? PowerState { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("starting", "started", "stopping", "stopped", "restarting", "unknown")]
+ string PowerState { get; set; }
/// State of provisioning of the AzureBareMetalInstance
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalProvisioningStatesEnum? ProvisioningState { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("Accepted", "Creating", "Updating", "Failed", "Succeeded", "Deleting", "Migrating")]
+ string ProvisioningState { get; set; }
/// Resource proximity placement group
string ProximityPlacementGroup { get; set; }
/// Specifies the storage settings for the AzureBareMetal instance disks.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IStorageProfile StorageProfile { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IStorageProfile StorageProfile { get; set; }
/// IP Address to connect to storage.
string StorageProfileNfsIPAddress { get; set; }
///
/// Specifies information about the operating system disk used by baremetal instance.
///
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk[] StorageProfileOSDisk { get; set; }
+ System.Collections.Generic.List StorageProfileOSDisk { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstanceProperties.json.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstanceProperties.json.cs
similarity index 88%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstanceProperties.json.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstanceProperties.json.cs
index b8c642aa85a5..7997ee9fc8b2 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstanceProperties.json.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstanceProperties.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
@@ -65,27 +65,27 @@ internal AzureBareMetalInstanceProperties(Microsoft.Azure.PowerShell.Cmdlets.Bar
{
return;
}
- {_hardwareProfile = If( json?.PropertyT("hardwareProfile"), out var __jsonHardwareProfile) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.HardwareProfile.FromJson(__jsonHardwareProfile) : HardwareProfile;}
- {_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.StorageProfile.FromJson(__jsonStorageProfile) : StorageProfile;}
- {_oSProfile = If( json?.PropertyT("osProfile"), out var __jsonOSProfile) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.OSProfile.FromJson(__jsonOSProfile) : OSProfile;}
- {_networkProfile = If( json?.PropertyT("networkProfile"), out var __jsonNetworkProfile) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.NetworkProfile.FromJson(__jsonNetworkProfile) : NetworkProfile;}
- {_azureBareMetalInstanceId = If( json?.PropertyT("azureBareMetalInstanceId"), out var __jsonAzureBareMetalInstanceId) ? (string)__jsonAzureBareMetalInstanceId : (string)AzureBareMetalInstanceId;}
- {_powerState = If( json?.PropertyT("powerState"), out var __jsonPowerState) ? (string)__jsonPowerState : (string)PowerState;}
- {_proximityPlacementGroup = If( json?.PropertyT("proximityPlacementGroup"), out var __jsonProximityPlacementGroup) ? (string)__jsonProximityPlacementGroup : (string)ProximityPlacementGroup;}
- {_hwRevision = If( json?.PropertyT("hwRevision"), out var __jsonHwRevision) ? (string)__jsonHwRevision : (string)HwRevision;}
- {_partnerNodeId = If( json?.PropertyT("partnerNodeId"), out var __jsonPartnerNodeId) ? (string)__jsonPartnerNodeId : (string)PartnerNodeId;}
- {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;}
+ {_hardwareProfile = If( json?.PropertyT("hardwareProfile"), out var __jsonHardwareProfile) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.HardwareProfile.FromJson(__jsonHardwareProfile) : _hardwareProfile;}
+ {_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.StorageProfile.FromJson(__jsonStorageProfile) : _storageProfile;}
+ {_oSProfile = If( json?.PropertyT("osProfile"), out var __jsonOSProfile) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.OSProfile.FromJson(__jsonOSProfile) : _oSProfile;}
+ {_networkProfile = If( json?.PropertyT("networkProfile"), out var __jsonNetworkProfile) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.NetworkProfile.FromJson(__jsonNetworkProfile) : _networkProfile;}
+ {_azureBareMetalInstanceId = If( json?.PropertyT("azureBareMetalInstanceId"), out var __jsonAzureBareMetalInstanceId) ? (string)__jsonAzureBareMetalInstanceId : (string)_azureBareMetalInstanceId;}
+ {_powerState = If( json?.PropertyT("powerState"), out var __jsonPowerState) ? (string)__jsonPowerState : (string)_powerState;}
+ {_proximityPlacementGroup = If( json?.PropertyT("proximityPlacementGroup"), out var __jsonProximityPlacementGroup) ? (string)__jsonProximityPlacementGroup : (string)_proximityPlacementGroup;}
+ {_hwRevision = If( json?.PropertyT("hwRevision"), out var __jsonHwRevision) ? (string)__jsonHwRevision : (string)_hwRevision;}
+ {_partnerNodeId = If( json?.PropertyT("partnerNodeId"), out var __jsonPartnerNodeId) ? (string)__jsonPartnerNodeId : (string)_partnerNodeId;}
+ {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstanceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstanceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json ? new AzureBareMetalInstanceProperties(json) : null;
}
@@ -113,24 +113,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode ToJson
AddIf( null != this._storageProfile ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) this._storageProfile.ToJson(null,serializationMode) : null, "storageProfile" ,container.Add );
AddIf( null != this._oSProfile ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) this._oSProfile.ToJson(null,serializationMode) : null, "osProfile" ,container.Add );
AddIf( null != this._networkProfile ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) this._networkProfile.ToJson(null,serializationMode) : null, "networkProfile" ,container.Add );
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._azureBareMetalInstanceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._azureBareMetalInstanceId.ToString()) : null, "azureBareMetalInstanceId" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._powerState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._powerState.ToString()) : null, "powerState" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._proximityPlacementGroup)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._proximityPlacementGroup.ToString()) : null, "proximityPlacementGroup" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._hwRevision)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._hwRevision.ToString()) : null, "hwRevision" ,container.Add );
}
AddIf( null != (((object)this._partnerNodeId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._partnerNodeId.ToString()) : null, "partnerNodeId" ,container.Add );
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add );
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstancesListResult.PowerShell.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstancesListResult.PowerShell.cs
similarity index 75%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstancesListResult.PowerShell.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstancesListResult.PowerShell.cs
index 1c423e1c8093..e76ed9c5b00d 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstancesListResult.PowerShell.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstancesListResult.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class AzureBareMetalInstancesListResult
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,17 +78,17 @@ internal AzureBareMetalInstancesListResult(global::System.Collections.IDictionar
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstanceTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstanceTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResultInternal)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.
@@ -103,39 +103,37 @@ internal AzureBareMetalInstancesListResult(global::System.Management.Automation.
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstanceTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstanceTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResultInternal)this).NextLink, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AzureBareMetalInstancesListResult(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.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AzureBareMetalInstancesListResult(content);
}
@@ -147,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IA
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstancesListResult.TypeConverter.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstancesListResult.TypeConverter.cs
similarity index 96%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstancesListResult.TypeConverter.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstancesListResult.TypeConverter.cs
index 5d452804465e..96f1b877ff71 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstancesListResult.TypeConverter.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstancesListResult.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResult ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResult ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResult).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResult).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstancesListResult.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstancesListResult.cs
similarity index 72%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstancesListResult.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstancesListResult.cs
index 75327536ac70..e20feccbdc0e 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstancesListResult.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstancesListResult.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
/// The response from the List AzureBareMetal Instances operation.
public partial class AzureBareMetalInstancesListResult :
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResult,
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResultInternal
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResult,
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResultInternal
{
/// Backing field for property.
@@ -21,11 +21,11 @@ public partial class AzureBareMetalInstancesListResult :
public string NextLink { get => this._nextLink; set => this._nextLink = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance[] _value;
+ private System.Collections.Generic.List _value;
/// The list of Azure BareMetal instances.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance[] Value { get => this._value; set => this._value = value; }
+ public System.Collections.Generic.List Value { get => this._value; set => this._value = value; }
/// Creates an new instance.
public AzureBareMetalInstancesListResult()
@@ -41,6 +41,9 @@ public partial interface IAzureBareMetalInstancesListResult :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The URL to get the next set of AzureBareMetal instances.",
SerializedName = @"nextLink",
PossibleTypes = new [] { typeof(string) })]
@@ -49,10 +52,13 @@ public partial interface IAzureBareMetalInstancesListResult :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The list of Azure BareMetal instances.",
SerializedName = @"value",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance[] Value { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance) })]
+ System.Collections.Generic.List Value { get; set; }
}
/// The response from the List AzureBareMetal Instances operation.
@@ -62,7 +68,7 @@ internal partial interface IAzureBareMetalInstancesListResultInternal
/// The URL to get the next set of AzureBareMetal instances.
string NextLink { get; set; }
/// The list of Azure BareMetal instances.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance[] Value { get; set; }
+ System.Collections.Generic.List Value { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstancesListResult.json.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstancesListResult.json.cs
similarity index 89%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstancesListResult.json.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstancesListResult.json.cs
index 35a503e87dc7..f84f61db946d 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/AzureBareMetalInstancesListResult.json.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/AzureBareMetalInstancesListResult.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
@@ -65,19 +65,19 @@ internal AzureBareMetalInstancesListResult(Microsoft.Azure.PowerShell.Cmdlets.Ba
{
return;
}
- {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance) (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstance.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.BareMetal.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.BareMetal.Models.IAzureBareMetalInstance) (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.AzureBareMetalInstance.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.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResult.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResult.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResult.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResult.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstancesListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstancesListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json ? new AzureBareMetalInstancesListResult(json) : null;
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/BareMetalIdentity.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/BareMetalIdentity.cs
index 1b9142fb620c..6ad328fb194a 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/BareMetalIdentity.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/BareMetalIdentity.cs
@@ -53,6 +53,9 @@ public partial interface IBareMetalIdentity :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Name of the Azure BareMetal on Azure instance.",
SerializedName = @"azureBareMetalInstanceName",
PossibleTypes = new [] { typeof(string) })]
@@ -61,6 +64,9 @@ public partial interface IBareMetalIdentity :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Resource identity path",
SerializedName = @"id",
PossibleTypes = new [] { typeof(string) })]
@@ -69,6 +75,9 @@ public partial interface IBareMetalIdentity :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The name of the resource group. The name is case insensitive.",
SerializedName = @"resourceGroupName",
PossibleTypes = new [] { typeof(string) })]
@@ -77,6 +86,9 @@ public partial interface IBareMetalIdentity :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The ID of the target subscription.",
SerializedName = @"subscriptionId",
PossibleTypes = new [] { typeof(string) })]
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/BareMetalIdentity.json.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/BareMetalIdentity.json.cs
index c77618cc4a79..66ea4cd1b678 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/BareMetalIdentity.json.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/BareMetalIdentity.json.cs
@@ -64,10 +64,10 @@ internal BareMetalIdentity(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.
{
return;
}
- {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;}
- {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName;}
- {_azureBareMetalInstanceName = If( json?.PropertyT("azureBareMetalInstanceName"), out var __jsonAzureBareMetalInstanceName) ? (string)__jsonAzureBareMetalInstanceName : (string)AzureBareMetalInstanceName;}
- {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;}
+ {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)_subscriptionId;}
+ {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)_resourceGroupName;}
+ {_azureBareMetalInstanceName = If( json?.PropertyT("azureBareMetalInstanceName"), out var __jsonAzureBareMetalInstanceName) ? (string)__jsonAzureBareMetalInstanceName : (string)_azureBareMetalInstanceName;}
+ {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;}
AfterFromJson(json);
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Disk.PowerShell.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Disk.PowerShell.cs
similarity index 79%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Disk.PowerShell.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/Disk.PowerShell.cs
index 5d56b528af72..21e7c8de40f6 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Disk.PowerShell.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Disk.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -63,33 +63,33 @@ public partial class Disk
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.BareMetal.Models.Api20210809.IDisk DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisk DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new Disk(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.BareMetal.Models.Api20210809.IDisk DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisk DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new Disk(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -104,21 +104,21 @@ internal Disk(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDiskInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDiskInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDiskInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDiskInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("SizeGb"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDiskInternal)this).SizeGb = (int?) content.GetValueForProperty("SizeGb",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDiskInternal)this).SizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDiskInternal)this).SizeGb = (int?) content.GetValueForProperty("SizeGb",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDiskInternal)this).SizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("Lun"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDiskInternal)this).Lun = (int?) content.GetValueForProperty("Lun",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDiskInternal)this).Lun, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDiskInternal)this).Lun = (int?) content.GetValueForProperty("Lun",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDiskInternal)this).Lun, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -133,15 +133,15 @@ internal Disk(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDiskInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDiskInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDiskInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDiskInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("SizeGb"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDiskInternal)this).SizeGb = (int?) content.GetValueForProperty("SizeGb",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDiskInternal)this).SizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDiskInternal)this).SizeGb = (int?) content.GetValueForProperty("SizeGb",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDiskInternal)this).SizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("Lun"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDiskInternal)this).Lun = (int?) content.GetValueForProperty("Lun",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDiskInternal)this).Lun, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDiskInternal)this).Lun = (int?) content.GetValueForProperty("Lun",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDiskInternal)this).Lun, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
AfterDeserializePSObject(content);
}
@@ -151,7 +151,7 @@ internal Disk(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.BareMetal.Models.Api20210809.IDisk FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisk FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Disk.TypeConverter.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Disk.TypeConverter.cs
similarity index 97%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Disk.TypeConverter.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/Disk.TypeConverter.cs
index 3fba717843d8..f68ba744f887 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Disk.TypeConverter.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Disk.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisk ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisk).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Disk.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Disk.cs
similarity index 90%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Disk.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/Disk.cs
index 30154728b162..6fe647ba8d3b 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Disk.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Disk.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
/// Specifies the disk information fo the AzureBareMetal instance
public partial class Disk :
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk,
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDiskInternal
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisk,
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDiskInternal
{
/// Backing field for property.
@@ -24,7 +24,7 @@ public partial class Disk :
public int? Lun { get => this._lun; }
/// Internal Acessors for Lun
- int? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDiskInternal.Lun { get => this._lun; set { {_lun = value;} } }
+ int? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDiskInternal.Lun { get => this._lun; set { {_lun = value;} } }
/// Backing field for property.
private string _name;
@@ -57,6 +57,9 @@ public partial interface IDisk :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.",
SerializedName = @"lun",
PossibleTypes = new [] { typeof(int) })]
@@ -65,6 +68,9 @@ public partial interface IDisk :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The disk name.",
SerializedName = @"name",
PossibleTypes = new [] { typeof(string) })]
@@ -73,6 +79,9 @@ public partial interface IDisk :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Specifies the size of an empty data disk in gigabytes.",
SerializedName = @"diskSizeGB",
PossibleTypes = new [] { typeof(int) })]
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Disk.json.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Disk.json.cs
similarity index 92%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Disk.json.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/Disk.json.cs
index e9202994fcc2..90aa156b8522 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Disk.json.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Disk.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
@@ -65,20 +65,18 @@ internal Disk(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObje
{
return;
}
- {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;}
- {_sizeGb = If( json?.PropertyT("diskSizeGB"), out var __jsonDiskSizeGb) ? (int?)__jsonDiskSizeGb : SizeGb;}
- {_lun = If( json?.PropertyT("lun"), out var __jsonLun) ? (int?)__jsonLun : Lun;}
+ {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;}
+ {_sizeGb = If( json?.PropertyT("diskSizeGB"), out var __jsonDiskSizeGb) ? (int?)__jsonDiskSizeGb : _sizeGb;}
+ {_lun = If( json?.PropertyT("lun"), out var __jsonLun) ? (int?)__jsonLun : _lun;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisk.
///
/// a to deserialize from.
- ///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisk.
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisk FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json ? new Disk(json) : null;
}
@@ -104,7 +102,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode ToJson
}
AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add );
AddIf( null != this._sizeGb ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNumber((int)this._sizeGb) : null, "diskSizeGB" ,container.Add );
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != this._lun ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNumber((int)this._lun) : null, "lun" ,container.Add );
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Display.PowerShell.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Display.PowerShell.cs
similarity index 76%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Display.PowerShell.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/Display.PowerShell.cs
index e694917be14b..e88aa6e032fa 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Display.PowerShell.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Display.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -63,33 +63,33 @@ public partial class Display
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.BareMetal.Models.Api20210809.IDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new Display(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.BareMetal.Models.Api20210809.IDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new Display(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -104,25 +104,25 @@ internal Display(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Provider"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Provider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Provider, global::System.Convert.ToString);
}
if (content.Contains("Resource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Resource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Resource, global::System.Convert.ToString);
}
if (content.Contains("Operation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Operation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Operation, global::System.Convert.ToString);
}
if (content.Contains("Description"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Description, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)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.
@@ -137,19 +137,19 @@ internal Display(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Provider"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Provider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Provider, global::System.Convert.ToString);
}
if (content.Contains("Resource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Resource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Resource, global::System.Convert.ToString);
}
if (content.Contains("Operation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Operation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Operation, global::System.Convert.ToString);
}
if (content.Contains("Description"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal)this).Description, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal)this).Description, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -159,7 +159,7 @@ internal Display(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.BareMetal.Models.Api20210809.IDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Display.TypeConverter.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Display.TypeConverter.cs
similarity index 97%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Display.TypeConverter.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/Display.TypeConverter.cs
index 194cec868c45..dc2bf979b675 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Display.TypeConverter.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Display.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplay ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplay ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplay).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplay).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Display.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Display.cs
similarity index 86%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Display.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/Display.cs
index a86d682d4675..fac8d1ad130c 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Display.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Display.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
/// Detailed BareMetal operation information
public partial class Display :
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplay,
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplay,
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal
{
/// Backing field for property.
@@ -21,16 +21,16 @@ public partial class Display :
public string Description { get => this._description; }
/// Internal Acessors for Description
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal.Description { get => this._description; set { {_description = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal.Description { get => this._description; set { {_description = value;} } }
/// Internal Acessors for Operation
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } }
/// Internal Acessors for Provider
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } }
/// Internal Acessors for Resource
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } }
/// Backing field for property.
private string _operation;
@@ -69,6 +69,9 @@ public partial interface IDisplay :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The localized friendly description for the operation as shown to the user.",
SerializedName = @"description",
PossibleTypes = new [] { typeof(string) })]
@@ -77,6 +80,9 @@ public partial interface IDisplay :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The localized friendly name for the operation as shown to the user.",
SerializedName = @"operation",
PossibleTypes = new [] { typeof(string) })]
@@ -85,6 +91,9 @@ public partial interface IDisplay :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The localized friendly form of the resource provider name.",
SerializedName = @"provider",
PossibleTypes = new [] { typeof(string) })]
@@ -95,6 +104,9 @@ public partial interface IDisplay :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The localized friendly form of the resource type related to this action/operation.",
SerializedName = @"resource",
PossibleTypes = new [] { typeof(string) })]
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Display.json.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Display.json.cs
similarity index 89%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Display.json.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/Display.json.cs
index 691221ee94aa..2aaadc3f0190 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/Display.json.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Display.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
@@ -65,21 +65,19 @@ internal Display(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonO
{
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);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplay.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplay.
///
/// a to deserialize from.
- ///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplay.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplay.
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json ? new Display(json) : null;
}
@@ -103,19 +101,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode ToJson
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._provider)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._provider.ToString()) : null, "provider" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._resource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._resource.ToString()) : null, "resource" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._operation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._operation.ToString()) : null, "operation" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add );
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorDefinition.PowerShell.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorDefinition.PowerShell.cs
similarity index 74%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorDefinition.PowerShell.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorDefinition.PowerShell.cs
index 427619f0f72b..71ad761e082f 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorDefinition.PowerShell.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorDefinition.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -63,33 +63,33 @@ public partial class ErrorDefinition
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.BareMetal.Models.Api20210809.IErrorDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ErrorDefinition(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.BareMetal.Models.Api20210809.IErrorDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ErrorDefinition(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -104,21 +104,21 @@ internal ErrorDefinition(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorDefinitionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorDefinitionTypeConverter.ConvertFrom));
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -133,15 +133,15 @@ internal ErrorDefinition(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorDefinitionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorDefinitionTypeConverter.ConvertFrom));
}
AfterDeserializePSObject(content);
}
@@ -151,7 +151,7 @@ internal ErrorDefinition(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.BareMetal.Models.Api20210809.IErrorDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorDefinition.TypeConverter.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorDefinition.TypeConverter.cs
similarity index 97%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorDefinition.TypeConverter.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorDefinition.TypeConverter.cs
index edd1fd6da59b..8f50adac72bc 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorDefinition.TypeConverter.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorDefinition.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorDefinition.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorDefinition.cs
similarity index 72%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorDefinition.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorDefinition.cs
index 32893e14c320..399742e5e7b6 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorDefinition.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorDefinition.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
/// Error definition.
public partial class ErrorDefinition :
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition,
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition,
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal
{
/// Backing field for property.
@@ -23,11 +23,11 @@ public partial class ErrorDefinition :
public string Code { get => this._code; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition[] _detail;
+ private System.Collections.Generic.List _detail;
/// Internal error details.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition[] Detail { get => this._detail; }
+ public System.Collections.Generic.List Detail { get => this._detail; }
/// Backing field for property.
private string _message;
@@ -37,13 +37,13 @@ public partial class ErrorDefinition :
public string Message { get => this._message; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal.Code { get => this._code; set { {_code = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal.Code { get => this._code; set { {_code = value;} } }
/// Internal Acessors for Detail
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition[] Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal.Detail { get => this._detail; set { {_detail = value;} } }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal.Detail { get => this._detail; set { {_detail = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal.Message { get => this._message; set { {_message = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal.Message { get => this._message; set { {_message = value;} } }
/// Creates an new instance.
public ErrorDefinition()
@@ -61,6 +61,9 @@ public partial interface IErrorDefinition :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Service specific error code which serves as the substatus for the HTTP error code.",
SerializedName = @"code",
PossibleTypes = new [] { typeof(string) })]
@@ -69,14 +72,20 @@ public partial interface IErrorDefinition :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Internal error details.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition[] Detail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition) })]
+ System.Collections.Generic.List Detail { get; }
/// Description of the error.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Description of the error.",
SerializedName = @"message",
PossibleTypes = new [] { typeof(string) })]
@@ -92,7 +101,7 @@ internal partial interface IErrorDefinitionInternal
///
string Code { get; set; }
/// Internal error details.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition[] Detail { get; set; }
+ System.Collections.Generic.List Detail { get; set; }
/// Description of the error.
string Message { get; set; }
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorDefinition.json.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorDefinition.json.cs
similarity index 88%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorDefinition.json.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorDefinition.json.cs
index 35f72b96698f..4f788b8069d0 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorDefinition.json.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorDefinition.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
@@ -65,20 +65,20 @@ internal ErrorDefinition(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Js
{
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;}
- {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition) (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorDefinition.FromJson(__u) )) ))() : null : Detail;}
+ {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)_code;}
+ {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;}
+ {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Models.IErrorDefinition) (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorDefinition.FromJson(__u) )) ))() : null : _detail;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json ? new ErrorDefinition(json) : null;
}
@@ -102,15 +102,15 @@ public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode ToJson
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
if (null != this._detail)
{
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorResponse.PowerShell.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs
similarity index 70%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorResponse.PowerShell.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs
index 83acffd43ad3..9d8de6974282 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorResponse.PowerShell.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -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.BareMetal.Models.Api20210809.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Models.Api20210809.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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,25 +104,25 @@ internal ErrorResponse(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Error"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorDefinitionTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorDefinitionTypeConverter.ConvertFrom);
}
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorDefinitionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorDefinitionTypeConverter.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.
@@ -137,19 +137,19 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Error"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorDefinitionTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorDefinitionTypeConverter.ConvertFrom);
}
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorDefinitionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorDefinitionTypeConverter.ConvertFrom));
}
AfterDeserializePSObject(content);
}
@@ -159,7 +159,7 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content)
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorResponse.TypeConverter.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs
similarity index 97%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorResponse.TypeConverter.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs
index 7a042807699a..2b9e7c612a5c 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorResponse.TypeConverter.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponse ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponse ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponse).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponse).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorResponse.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorResponse.cs
similarity index 60%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorResponse.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorResponse.cs
index c9110a047a7d..7afb2f83c526 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorResponse.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorResponse.cs
@@ -3,48 +3,48 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
/// Error response.
public partial class ErrorResponse :
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponse,
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponse,
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal
{
///
/// Service specific error code which serves as the substatus for the HTTP error code.
///
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)Error).Code; }
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)Error).Code; }
/// Internal error details.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)Error).Detail; }
+ public System.Collections.Generic.List Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)Error).Detail; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition _error;
+ private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition _error;
/// The error details.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorDefinition()); set => this._error = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorDefinition()); set => this._error = value; }
/// Description of the error.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Inlined)]
- public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)Error).Message; }
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)Error).Message; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)Error).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)Error).Code = value; }
/// Internal Acessors for Detail
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition[] Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)Error).Detail = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)Error).Detail = value; }
/// Internal Acessors for Error
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorDefinition()); set { {_error = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorDefinition()); set { {_error = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinitionInternal)Error).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinitionInternal)Error).Message = value; }
/// Creates an new instance.
public ErrorResponse()
@@ -62,6 +62,9 @@ public partial interface IErrorResponse :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Service specific error code which serves as the substatus for the HTTP error code.",
SerializedName = @"code",
PossibleTypes = new [] { typeof(string) })]
@@ -70,14 +73,20 @@ public partial interface IErrorResponse :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Internal error details.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition[] Detail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition) })]
+ System.Collections.Generic.List Detail { get; }
/// Description of the error.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Description of the error.",
SerializedName = @"message",
PossibleTypes = new [] { typeof(string) })]
@@ -93,9 +102,9 @@ internal partial interface IErrorResponseInternal
///
string Code { get; set; }
/// Internal error details.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition[] Detail { get; set; }
+ System.Collections.Generic.List Detail { get; set; }
/// The error details.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorDefinition Error { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorDefinition Error { get; set; }
/// Description of the error.
string Message { get; set; }
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorResponse.json.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorResponse.json.cs
similarity index 94%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorResponse.json.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorResponse.json.cs
index 6f6a54a90232..bf164cb40835 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/ErrorResponse.json.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/ErrorResponse.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
@@ -65,18 +65,18 @@ internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json
{
return;
}
- {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.ErrorDefinition.FromJson(__jsonError) : Error;}
+ {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.ErrorDefinition.FromJson(__jsonError) : _error;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponse.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponse.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponse.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponse.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null;
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/HardwareProfile.PowerShell.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/HardwareProfile.PowerShell.cs
similarity index 75%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/HardwareProfile.PowerShell.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/HardwareProfile.PowerShell.cs
index 656dc501a02f..63148f5720d1 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/HardwareProfile.PowerShell.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/HardwareProfile.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -63,27 +63,27 @@ public partial class HardwareProfile
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.BareMetal.Models.Api20210809.IHardwareProfile DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new HardwareProfile(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.BareMetal.Models.Api20210809.IHardwareProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new HardwareProfile(content);
}
@@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IH
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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,17 +111,17 @@ internal HardwareProfile(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("HardwareType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal)this).HardwareType = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum?) content.GetValueForProperty("HardwareType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal)this).HardwareType, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal)this).HardwareType = (string) content.GetValueForProperty("HardwareType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal)this).HardwareType, global::System.Convert.ToString);
}
if (content.Contains("AzureBareMetalInstanceSize"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal)this).AzureBareMetalInstanceSize = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum?) content.GetValueForProperty("AzureBareMetalInstanceSize",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal)this).AzureBareMetalInstanceSize, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal)this).AzureBareMetalInstanceSize = (string) content.GetValueForProperty("AzureBareMetalInstanceSize",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal)this).AzureBareMetalInstanceSize, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -136,11 +136,11 @@ internal HardwareProfile(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("HardwareType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal)this).HardwareType = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum?) content.GetValueForProperty("HardwareType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal)this).HardwareType, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal)this).HardwareType = (string) content.GetValueForProperty("HardwareType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal)this).HardwareType, global::System.Convert.ToString);
}
if (content.Contains("AzureBareMetalInstanceSize"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal)this).AzureBareMetalInstanceSize = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum?) content.GetValueForProperty("AzureBareMetalInstanceSize",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal)this).AzureBareMetalInstanceSize, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal)this).AzureBareMetalInstanceSize = (string) content.GetValueForProperty("AzureBareMetalInstanceSize",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal)this).AzureBareMetalInstanceSize, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/HardwareProfile.TypeConverter.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/HardwareProfile.TypeConverter.cs
similarity index 97%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/HardwareProfile.TypeConverter.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/HardwareProfile.TypeConverter.cs
index b5d19799e139..e4d5329993d1 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/HardwareProfile.TypeConverter.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/HardwareProfile.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/HardwareProfile.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/HardwareProfile.cs
similarity index 51%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/HardwareProfile.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/HardwareProfile.cs
index 8f1c1b2f27e7..a63cd1e4e685 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/HardwareProfile.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/HardwareProfile.cs
@@ -3,35 +3,35 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
/// Specifies the hardware settings for the AzureBareMetal instance.
public partial class HardwareProfile :
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile,
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile,
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum? _azureBareMetalInstanceSize;
+ private string _azureBareMetalInstanceSize;
/// Specifies the AzureBareMetal instance SKU.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum? AzureBareMetalInstanceSize { get => this._azureBareMetalInstanceSize; }
+ public string AzureBareMetalInstanceSize { get => this._azureBareMetalInstanceSize; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum? _hardwareType;
+ private string _hardwareType;
/// Name of the hardware type (vendor and/or their product name)
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum? HardwareType { get => this._hardwareType; }
+ public string HardwareType { get => this._hardwareType; }
/// Internal Acessors for AzureBareMetalInstanceSize
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal.AzureBareMetalInstanceSize { get => this._azureBareMetalInstanceSize; set { {_azureBareMetalInstanceSize = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal.AzureBareMetalInstanceSize { get => this._azureBareMetalInstanceSize; set { {_azureBareMetalInstanceSize = value;} } }
/// Internal Acessors for HardwareType
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfileInternal.HardwareType { get => this._hardwareType; set { {_hardwareType = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfileInternal.HardwareType { get => this._hardwareType; set { {_hardwareType = value;} } }
/// Creates an new instance.
public HardwareProfile()
@@ -47,18 +47,26 @@ public partial interface IHardwareProfile :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Specifies the AzureBareMetal instance SKU.",
SerializedName = @"azureBareMetalInstanceSize",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum? AzureBareMetalInstanceSize { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("S72m", "S144m", "S72", "S144", "S192", "S192m", "S192xm", "S96", "S112", "S224", "S224m", "S224om", "S224oo", "S224oom", "S224ooo", "S384", "S384m", "S384xm", "S384xxm", "S448", "S448m", "S448om", "S448oo", "S448oom", "S448ooo", "S576m", "S576xm", "S672", "S672m", "S672om", "S672oo", "S672oom", "S672ooo", "S768", "S768m", "S768xm", "S896", "S896m", "S896om", "S896oo", "S896oom", "S896ooo", "S960m")]
+ string AzureBareMetalInstanceSize { get; }
/// Name of the hardware type (vendor and/or their product name)
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Name of the hardware type (vendor and/or their product name)",
SerializedName = @"hardwareType",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum? HardwareType { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("Cisco_UCS", "HPE")]
+ string HardwareType { get; }
}
/// Specifies the hardware settings for the AzureBareMetal instance.
@@ -66,9 +74,11 @@ internal partial interface IHardwareProfileInternal
{
/// Specifies the AzureBareMetal instance SKU.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalInstanceSizeNamesEnum? AzureBareMetalInstanceSize { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("S72m", "S144m", "S72", "S144", "S192", "S192m", "S192xm", "S96", "S112", "S224", "S224m", "S224om", "S224oo", "S224oom", "S224ooo", "S384", "S384m", "S384xm", "S384xxm", "S448", "S448m", "S448om", "S448oo", "S448oom", "S448ooo", "S576m", "S576xm", "S672", "S672m", "S672om", "S672oo", "S672oom", "S672ooo", "S768", "S768m", "S768xm", "S896", "S896m", "S896om", "S896oo", "S896oom", "S896ooo", "S960m")]
+ string AzureBareMetalInstanceSize { get; set; }
/// Name of the hardware type (vendor and/or their product name)
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Support.AzureBareMetalHardwareTypeNamesEnum? HardwareType { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PSArgumentCompleterAttribute("Cisco_UCS", "HPE")]
+ string HardwareType { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/HardwareProfile.json.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/HardwareProfile.json.cs
similarity index 93%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/HardwareProfile.json.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/HardwareProfile.json.cs
index 7c26c19cdb4b..2eadff71f923 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/HardwareProfile.json.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/HardwareProfile.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class HardwareProfile
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IHardwareProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IHardwareProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json ? new HardwareProfile(json) : null;
}
@@ -77,8 +77,8 @@ internal HardwareProfile(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Js
{
return;
}
- {_hardwareType = If( json?.PropertyT("hardwareType"), out var __jsonHardwareType) ? (string)__jsonHardwareType : (string)HardwareType;}
- {_azureBareMetalInstanceSize = If( json?.PropertyT("azureBareMetalInstanceSize"), out var __jsonAzureBareMetalInstanceSize) ? (string)__jsonAzureBareMetalInstanceSize : (string)AzureBareMetalInstanceSize;}
+ {_hardwareType = If( json?.PropertyT("hardwareType"), out var __jsonHardwareType) ? (string)__jsonHardwareType : (string)_hardwareType;}
+ {_azureBareMetalInstanceSize = If( json?.PropertyT("azureBareMetalInstanceSize"), out var __jsonAzureBareMetalInstanceSize) ? (string)__jsonAzureBareMetalInstanceSize : (string)_azureBareMetalInstanceSize;}
AfterFromJson(json);
}
@@ -101,11 +101,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode ToJson
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._hardwareType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._hardwareType.ToString()) : null, "hardwareType" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._azureBareMetalInstanceSize)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._azureBareMetalInstanceSize.ToString()) : null, "azureBareMetalInstanceSize" ,container.Add );
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/IPAddress.PowerShell.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/IPAddress.PowerShell.cs
similarity index 85%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/IPAddress.PowerShell.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/IPAddress.PowerShell.cs
index 16a693637690..3b6310834365 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/IPAddress.PowerShell.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/IPAddress.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -63,27 +63,27 @@ public partial class IPAddress
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.BareMetal.Models.Api20210809.IIPAddress DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddress DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new IPAddress(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.BareMetal.Models.Api20210809.IIPAddress DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddress DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new IPAddress(content);
}
@@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.II
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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,13 +111,13 @@ internal IPAddress(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("IPAddress1"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddressInternal)this).IPAddress1 = (string) content.GetValueForProperty("IPAddress1",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddressInternal)this).IPAddress1, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddressInternal)this).IPAddress1 = (string) content.GetValueForProperty("IPAddress1",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddressInternal)this).IPAddress1, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -132,7 +132,7 @@ internal IPAddress(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("IPAddress1"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddressInternal)this).IPAddress1 = (string) content.GetValueForProperty("IPAddress1",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddressInternal)this).IPAddress1, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddressInternal)this).IPAddress1 = (string) content.GetValueForProperty("IPAddress1",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddressInternal)this).IPAddress1, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/IPAddress.TypeConverter.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/IPAddress.TypeConverter.cs
similarity index 97%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/IPAddress.TypeConverter.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/IPAddress.TypeConverter.cs
index 31560896ad52..63b5bb7b9909 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/IPAddress.TypeConverter.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/IPAddress.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddress ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddress).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/IPAddress.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/IPAddress.cs
similarity index 87%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/IPAddress.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/IPAddress.cs
index 2773d4d459f6..9ab2b3e15ed6 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/IPAddress.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/IPAddress.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
/// Specifies the IP address of the network interface.
public partial class IPAddress :
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress,
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddressInternal
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddress,
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddressInternal
{
/// Backing field for property.
@@ -34,6 +34,9 @@ public partial interface IIPAddress :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Specifies the IP address of the network interface.",
SerializedName = @"ipAddress",
PossibleTypes = new [] { typeof(string) })]
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/IPAddress.json.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/IPAddress.json.cs
similarity index 93%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/IPAddress.json.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/IPAddress.json.cs
index f6798bf8c846..7db32eb049b3 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/IPAddress.json.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/IPAddress.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
@@ -54,13 +54,11 @@ public partial class IPAddress
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddress.
///
/// a to deserialize from.
- ///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddress.
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddress FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json ? new IPAddress(json) : null;
}
@@ -77,7 +75,7 @@ internal IPAddress(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.Jso
{
return;
}
- {_iPAddress1 = If( json?.PropertyT("ipAddress"), out var __jsonIPAddress) ? (string)__jsonIPAddress : (string)IPAddress1;}
+ {_iPAddress1 = If( json?.PropertyT("ipAddress"), out var __jsonIPAddress) ? (string)__jsonIPAddress : (string)_iPAddress1;}
AfterFromJson(json);
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/NetworkProfile.PowerShell.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/NetworkProfile.PowerShell.cs
similarity index 77%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/NetworkProfile.PowerShell.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/NetworkProfile.PowerShell.cs
index 9df420fe9fce..2d1384bd2f31 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/NetworkProfile.PowerShell.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/NetworkProfile.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -63,27 +63,27 @@ public partial class NetworkProfile
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.BareMetal.Models.Api20210809.INetworkProfile DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new NetworkProfile(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.BareMetal.Models.Api20210809.INetworkProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new NetworkProfile(content);
}
@@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IN
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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,17 +111,17 @@ internal NetworkProfile(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("NetworkInterface"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal)this).NetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[]) content.GetValueForProperty("NetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal)this).NetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IPAddressTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal)this).NetworkInterface = (System.Collections.Generic.List) content.GetValueForProperty("NetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal)this).NetworkInterface, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IPAddressTypeConverter.ConvertFrom));
}
if (content.Contains("CircuitId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal)this).CircuitId = (string) content.GetValueForProperty("CircuitId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal)this).CircuitId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal)this).CircuitId = (string) content.GetValueForProperty("CircuitId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal)this).CircuitId, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -136,11 +136,11 @@ internal NetworkProfile(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("NetworkInterface"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal)this).NetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[]) content.GetValueForProperty("NetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal)this).NetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IPAddressTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal)this).NetworkInterface = (System.Collections.Generic.List) content.GetValueForProperty("NetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal)this).NetworkInterface, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IPAddressTypeConverter.ConvertFrom));
}
if (content.Contains("CircuitId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal)this).CircuitId = (string) content.GetValueForProperty("CircuitId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal)this).CircuitId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal)this).CircuitId = (string) content.GetValueForProperty("CircuitId",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal)this).CircuitId, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/NetworkProfile.TypeConverter.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/NetworkProfile.TypeConverter.cs
similarity index 97%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/NetworkProfile.TypeConverter.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/NetworkProfile.TypeConverter.cs
index c98d5b4b1238..8e244e0b6c6b 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/NetworkProfile.TypeConverter.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/NetworkProfile.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/NetworkProfile.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/NetworkProfile.cs
similarity index 72%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/NetworkProfile.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/NetworkProfile.cs
index 881db5e5db7f..d3578e356607 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/NetworkProfile.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/NetworkProfile.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
/// Specifies the network settings for the AzureBareMetal instance disks.
public partial class NetworkProfile :
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile,
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile,
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal
{
/// Backing field for property.
@@ -21,14 +21,14 @@ public partial class NetworkProfile :
public string CircuitId { get => this._circuitId; }
/// Internal Acessors for CircuitId
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfileInternal.CircuitId { get => this._circuitId; set { {_circuitId = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfileInternal.CircuitId { get => this._circuitId; set { {_circuitId = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[] _networkInterface;
+ private System.Collections.Generic.List _networkInterface;
/// Specifies the network interfaces for the AzureBareMetal instance.
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Origin(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[] NetworkInterface { get => this._networkInterface; set => this._networkInterface = value; }
+ public System.Collections.Generic.List NetworkInterface { get => this._networkInterface; set => this._networkInterface = value; }
/// Creates an new instance.
public NetworkProfile()
@@ -44,6 +44,9 @@ public partial interface INetworkProfile :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Specifies the circuit id for connecting to express route.",
SerializedName = @"circuitId",
PossibleTypes = new [] { typeof(string) })]
@@ -52,10 +55,13 @@ public partial interface INetworkProfile :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Specifies the network interfaces for the AzureBareMetal instance.",
SerializedName = @"networkInterfaces",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress) })]
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[] NetworkInterface { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IIPAddress) })]
+ System.Collections.Generic.List NetworkInterface { get; set; }
}
/// Specifies the network settings for the AzureBareMetal instance disks.
@@ -65,7 +71,7 @@ internal partial interface INetworkProfileInternal
/// Specifies the circuit id for connecting to express route.
string CircuitId { get; set; }
/// Specifies the network interfaces for the AzureBareMetal instance.
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[] NetworkInterface { get; set; }
+ System.Collections.Generic.List NetworkInterface { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/NetworkProfile.json.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/NetworkProfile.json.cs
similarity index 89%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/NetworkProfile.json.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/NetworkProfile.json.cs
index 0f5bc32401ea..d1eb3a1a55ef 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/NetworkProfile.json.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/NetworkProfile.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class NetworkProfile
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.INetworkProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.INetworkProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json ? new NetworkProfile(json) : null;
}
@@ -77,8 +77,8 @@ internal NetworkProfile(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Jso
{
return;
}
- {_networkInterface = If( json?.PropertyT("networkInterfaces"), out var __jsonNetworkInterfaces) ? If( __jsonNetworkInterfaces as Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress) (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IPAddress.FromJson(__u) )) ))() : null : NetworkInterface;}
- {_circuitId = If( json?.PropertyT("circuitId"), out var __jsonCircuitId) ? (string)__jsonCircuitId : (string)CircuitId;}
+ {_networkInterface = If( json?.PropertyT("networkInterfaces"), out var __jsonNetworkInterfaces) ? If( __jsonNetworkInterfaces as Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Models.IIPAddress) (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IPAddress.FromJson(__u) )) ))() : null : _networkInterface;}
+ {_circuitId = If( json?.PropertyT("circuitId"), out var __jsonCircuitId) ? (string)__jsonCircuitId : (string)_circuitId;}
AfterFromJson(json);
}
@@ -110,7 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode ToJson
}
container.Add("networkInterfaces",__w);
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._circuitId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString(this._circuitId.ToString()) : null, "circuitId" ,container.Add );
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/OSProfile.PowerShell.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/OSProfile.PowerShell.cs
similarity index 75%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/OSProfile.PowerShell.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/OSProfile.PowerShell.cs
index ce308ed6e0fc..56bc819ae0a9 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/OSProfile.PowerShell.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/OSProfile.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -63,27 +63,27 @@ public partial class OSProfile
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.BareMetal.Models.Api20210809.IOSProfile DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new OSProfile(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.BareMetal.Models.Api20210809.IOSProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new OSProfile(content);
}
@@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IO
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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,25 +111,25 @@ internal OSProfile(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("ComputerName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).ComputerName = (string) content.GetValueForProperty("ComputerName",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).ComputerName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).ComputerName = (string) content.GetValueForProperty("ComputerName",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).ComputerName, global::System.Convert.ToString);
}
if (content.Contains("OSType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).OSType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).OSType, global::System.Convert.ToString);
}
if (content.Contains("Version"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).Version, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).Version, global::System.Convert.ToString);
}
if (content.Contains("SshPublicKey"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).SshPublicKey = (string) content.GetValueForProperty("SshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).SshPublicKey, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).SshPublicKey = (string) content.GetValueForProperty("SshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).SshPublicKey, 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.
@@ -144,19 +144,19 @@ internal OSProfile(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("ComputerName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).ComputerName = (string) content.GetValueForProperty("ComputerName",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).ComputerName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).ComputerName = (string) content.GetValueForProperty("ComputerName",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).ComputerName, global::System.Convert.ToString);
}
if (content.Contains("OSType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).OSType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).OSType, global::System.Convert.ToString);
}
if (content.Contains("Version"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).Version, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).Version, global::System.Convert.ToString);
}
if (content.Contains("SshPublicKey"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).SshPublicKey = (string) content.GetValueForProperty("SshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal)this).SshPublicKey, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).SshPublicKey = (string) content.GetValueForProperty("SshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal)this).SshPublicKey, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/OSProfile.TypeConverter.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/OSProfile.TypeConverter.cs
similarity index 97%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/OSProfile.TypeConverter.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/OSProfile.TypeConverter.cs
index a8cb4808501a..aaa70a51c75d 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/OSProfile.TypeConverter.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/OSProfile.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.PowerShell;
@@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/OSProfile.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/OSProfile.cs
similarity index 88%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/OSProfile.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/OSProfile.cs
index ef96bcea57b7..1e2b578438e6 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/OSProfile.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/OSProfile.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
/// Specifies the operating system settings for the AzureBareMetal instance.
public partial class OSProfile :
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile,
- Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile,
+ Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal
{
/// Backing field for property.
@@ -21,10 +21,10 @@ public partial class OSProfile :
public string ComputerName { get => this._computerName; set => this._computerName = value; }
/// Internal Acessors for OSType
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal.OSType { get => this._oSType; set { {_oSType = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal.OSType { get => this._oSType; set { {_oSType = value;} } }
/// Internal Acessors for Version
- string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfileInternal.Version { get => this._version; set { {_version = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfileInternal.Version { get => this._version; set { {_version = value;} } }
/// Backing field for property.
private string _oSType;
@@ -61,6 +61,9 @@ public partial interface IOSProfile :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Specifies the host OS name of the AzureBareMetal instance.",
SerializedName = @"computerName",
PossibleTypes = new [] { typeof(string) })]
@@ -69,6 +72,9 @@ public partial interface IOSProfile :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"This property allows you to specify the type of the OS.",
SerializedName = @"osType",
PossibleTypes = new [] { typeof(string) })]
@@ -77,6 +83,9 @@ public partial interface IOSProfile :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Specifies the SSH public key used to access the operating system.",
SerializedName = @"sshPublicKey",
PossibleTypes = new [] { typeof(string) })]
@@ -85,6 +94,9 @@ public partial interface IOSProfile :
[Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Specifies version of operating system.",
SerializedName = @"version",
PossibleTypes = new [] { typeof(string) })]
diff --git a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/OSProfile.json.cs b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/OSProfile.json.cs
similarity index 91%
rename from generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/OSProfile.json.cs
rename to generated/BareMetal/BareMetal.Autorest/generated/api/Models/OSProfile.json.cs
index 44d4d7354fed..3b77f47dd031 100644
--- a/generated/BareMetal/BareMetal.Autorest/generated/api/Models/Api20210809/OSProfile.json.cs
+++ b/generated/BareMetal/BareMetal.Autorest/generated/api/Models/OSProfile.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809
+namespace Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Extensions;
@@ -54,13 +54,11 @@ public partial class OSProfile
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile.
///
/// a to deserialize from.
- ///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IOSProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile.
+ public static Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IOSProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json ? new OSProfile(json) : null;
}
@@ -77,10 +75,10 @@ internal OSProfile(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.Jso
{
return;
}
- {_computerName = If( json?.PropertyT("computerName"), out var __jsonComputerName) ? (string)__jsonComputerName : (string)ComputerName;}
- {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType;}
- {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;}
- {_sshPublicKey = If( json?.PropertyT("sshPublicKey"), out var __jsonSshPublicKey) ? (string)__jsonSshPublicKey : (string)SshPublicKey;}
+ {_computerName = If( json?.PropertyT