diff --git a/generated/Portal/Portal.Autorest/Az.Portal.csproj b/generated/Portal/Portal.Autorest/Az.Portal.csproj
index 75c4f8297095..6fe9d12c6bbd 100644
--- a/generated/Portal/Portal.Autorest/Az.Portal.csproj
+++ b/generated/Portal/Portal.Autorest/Az.Portal.csproj
@@ -2,9 +2,9 @@
Portal
Portal
+ Portal.Autorest
-
diff --git a/generated/Portal/Portal.Autorest/Az.Portal.format.ps1xml b/generated/Portal/Portal.Autorest/Az.Portal.format.ps1xml
index 2c290b78209d..f44c299d24f0 100644
--- a/generated/Portal/Portal.Autorest/Az.Portal.format.ps1xml
+++ b/generated/Portal/Portal.Autorest/Az.Portal.format.ps1xml
@@ -2,33 +2,69 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.PortalIdentity
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Dashboard
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.PortalIdentity
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Dashboard#Multiple
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- DashboardName
+ Location
- ResourceGroupName
+ Name
- SubscriptionId
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
@@ -36,33 +72,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorDetail
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardLens
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorDetail
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardLens#Multiple
-
-
-
-
-
-
-
+
- Code
-
-
- Message
-
-
- Target
+ Order
@@ -70,39 +94,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.Operation
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardListResult
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.Operation
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardListResult#Multiple
-
-
-
-
-
-
-
-
-
-
+
- ActionType
-
-
- IsDataAction
-
-
- Name
-
-
- Origin
+ NextLink
@@ -110,39 +116,39 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.OperationDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartsPosition
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.OperationDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartsPosition#Multiple
-
+
-
+
-
+
-
+
- Description
+ ColSpan
- Operation
+ RowSpan
- Provider
+ X
- Resource
+ Y
@@ -150,21 +156,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.OperationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.OperationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningState#Multiple
-
+
- NextLink
+ ProvisioningState
@@ -172,21 +178,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.Resource
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorDetail
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.Resource
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorDetail#Multiple
-
+
+
+
+
+
+
+
- Name
+ Code
+
+
+ Message
+
+
+ Target
@@ -194,51 +212,45 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentSettings
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentSettings#Multiple
-
-
-
-
+
-
+
-
+
-
+
-
+
- CreatedAt
-
-
- CreatedBy
+ Content
- CreatedByType
+ MarkdownSource
- LastModifiedAt
+ MarkdownUri
- LastModifiedBy
+ Subtitle
- LastModifiedByType
+ Title
@@ -246,85 +258,39 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.TrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Operation
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.TrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Operation#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
-
+
- Name
-
-
- SystemDataCreatedAt
-
-
- SystemDataCreatedBy
-
-
- SystemDataCreatedByType
-
-
- SystemDataLastModifiedAt
-
-
- SystemDataLastModifiedBy
+ ActionType
- SystemDataLastModifiedByType
+ IsDataAction
- Location
+ Name
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.TrackedResourceTags
-
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.TrackedResourceTags
-
-
-
-
-
-
-
-
-
-
- Item
+ Origin
@@ -332,63 +298,39 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.Dashboard
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.OperationDisplay
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.Dashboard
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.OperationDisplay#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
-
+
- Location
-
-
- Name
-
-
- SystemDataCreatedAt
-
-
- SystemDataCreatedBy
-
-
- SystemDataCreatedByType
+ Description
- SystemDataLastModifiedAt
+ Operation
- SystemDataLastModifiedBy
+ Provider
- SystemDataLastModifiedByType
+ Resource
@@ -396,21 +338,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardLens
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.OperationListResult
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardLens
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.OperationListResult#Multiple
-
+
- Order
+ NextLink
@@ -418,21 +360,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.PatchableDashboardTags
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.PatchableDashboardTags#Multiple
-
+
- NextLink
+ Item
@@ -440,39 +382,55 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartsPosition
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.PortalIdentity
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartsPosition
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.PortalIdentity#Multiple
-
-
-
-
+
-
+
-
+
- ColSpan
+ DashboardName
- RowSpan
+ ResourceGroupName
- X
+ SubscriptionId
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Resource
+
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Resource#Multiple
+
+
+
+
+
+
+
+
+
+
- Y
+ Name
@@ -480,21 +438,51 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesWithProvisioningState
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.SystemData
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesWithProvisioningState
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.SystemData#Multiple
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- ProvisioningState
+ CreatedAt
+
+
+ CreatedBy
+
+
+ CreatedByType
+
+
+ LastModifiedAt
+
+
+ LastModifiedBy
+
+
+ LastModifiedByType
@@ -502,45 +490,63 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentSettings
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.TrackedResource
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentSettings
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.TrackedResource#Multiple
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
- Content
+ Name
- MarkdownSource
+ SystemDataCreatedAt
- MarkdownUri
+ SystemDataCreatedBy
- Subtitle
+ SystemDataCreatedByType
- Title
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ Location
@@ -548,9 +554,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.PatchableDashboardTags
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.TrackedResourceTags
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.PatchableDashboardTags
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.TrackedResourceTags#Multiple
diff --git a/generated/Portal/Portal.Autorest/Az.Portal.psd1 b/generated/Portal/Portal.Autorest/Az.Portal.psd1
index a2467d685f00..46f8d3e1399a 100644
--- a/generated/Portal/Portal.Autorest/Az.Portal.psd1
+++ b/generated/Portal/Portal.Autorest/Az.Portal.psd1
@@ -11,8 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.Portal.private.dll'
FormatsToProcess = './Az.Portal.format.ps1xml'
- FunctionsToExport = 'Get-AzPortalDashboard', 'New-AzPortalDashboard', 'Remove-AzPortalDashboard', 'Set-AzPortalDashboard', 'Update-AzPortalDashboard', '*'
- AliasesToExport = '*'
+ FunctionsToExport = 'Get-AzPortalDashboard', 'New-AzPortalDashboard', 'Remove-AzPortalDashboard', 'Set-AzPortalDashboard', 'Update-AzPortalDashboard'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Portal', 'Dashboard'
diff --git a/generated/Portal/Portal.Autorest/Properties/AssemblyInfo.cs b/generated/Portal/Portal.Autorest/Properties/AssemblyInfo.cs
index 53b7114c546d..41117eda57d0 100644
--- a/generated/Portal/Portal.Autorest/Properties/AssemblyInfo.cs
+++ b/generated/Portal/Portal.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 - Portal")]
-[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("2fd7f4f5-bec3-4918-9e3a-3fc4224ca828")]
-[assembly: AssemblyVersion("0.3.0")]
-[assembly: AssemblyFileVersion("0.3.0")]
+[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 - Portal")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.0")]
+[assembly: System.Reflection.AssemblyVersionAttribute("0.3.0")]
+[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
+[assembly: System.CLSCompliantAttribute(false)]
diff --git a/generated/Portal/Portal.Autorest/check-dependencies.ps1 b/generated/Portal/Portal.Autorest/check-dependencies.ps1
index c29591c7bfe1..90ca9867ae40 100644
--- a/generated/Portal/Portal.Autorest/check-dependencies.ps1
+++ b/generated/Portal/Portal.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/Portal/Portal.Autorest/exports/Get-AzPortalDashboard.ps1 b/generated/Portal/Portal.Autorest/exports/Get-AzPortalDashboard.ps1
index 559f023ccf94..adfb2d7558b8 100644
--- a/generated/Portal/Portal.Autorest/exports/Get-AzPortalDashboard.ps1
+++ b/generated/Portal/Portal.Autorest/exports/Get-AzPortalDashboard.ps1
@@ -27,7 +27,7 @@ Get-AzPortalDashboard -ResourceGroupName my-rg -Name mydashboard
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IPortalIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard
+Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -42,7 +42,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.portal/get-azportaldashboard
#>
function Get-AzPortalDashboard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -74,7 +74,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IPortalIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -133,6 +132,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.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,9 +165,7 @@ begin {
List = 'Az.Portal.private\Get-AzPortalDashboard_List';
List1 = 'Az.Portal.private\Get-AzPortalDashboard_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.Portal.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 {
@@ -173,6 +179,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/Portal/Portal.Autorest/exports/New-AzPortalDashboard.ps1 b/generated/Portal/Portal.Autorest/exports/New-AzPortalDashboard.ps1
index 157bd60bf7c0..ef7c644b52a5 100644
--- a/generated/Portal/Portal.Autorest/exports/New-AzPortalDashboard.ps1
+++ b/generated/Portal/Portal.Autorest/exports/New-AzPortalDashboard.ps1
@@ -16,16 +16,16 @@
<#
.Synopsis
-Creates or updates a Dashboard.
+create a Dashboard.
.Description
-Creates or updates a Dashboard.
+create a Dashboard.
.Example
New-AzPortalDashboard -DashboardPath .\resources\dash1.json -ResourceGroupName mydash-rg -DashboardName my-dashboard03
.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard
+Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard
+Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -33,7 +33,7 @@ To create the parameters described below, construct a hash table containing the
LENS : The dashboard lenses.
Order : The lens order.
- Part : The dashboard parts.
+ Part >: The dashboard parts.
PositionColSpan : The dashboard's part column span.
PositionRowSpan : The dashboard's part row span.
PositionX : The dashboard's part x coordinate.
@@ -42,18 +42,12 @@ LENS : The dashboard lenses.
[Metadata ]: The dashboard len's metadata.
RESOURCE : The shared dashboard resource definition.
- Location : The geo-location where the resource lives
+ [Location ]: The geo-location where the resource lives
[Tag ]: Resource tags.
[(Any) ]: This indicates any property can be added to this object.
- [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
- [SystemDataCreatedBy ]: The identity that created the resource.
- [SystemDataCreatedByType ]: The type of identity that created the resource.
- [SystemDataLastModifiedAt ]: The timestamp of resource last modification (UTC)
- [SystemDataLastModifiedBy ]: The identity that last modified the resource.
- [SystemDataLastModifiedByType ]: The type of identity that last modified the resource.
- [Lens ]: The dashboard lenses.
+ [Lens >]: The dashboard lenses.
Order : The lens order.
- Part : The dashboard parts.
+ Part >: The dashboard parts.
PositionColSpan : The dashboard's part column span.
PositionRowSpan : The dashboard's part row span.
PositionX : The dashboard's part x coordinate.
@@ -66,7 +60,7 @@ RESOURCE : The shared dashboard resource definition.
https://learn.microsoft.com/powershell/module/az.portal/new-azportaldashboard
#>
function New-AzPortalDashboard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -93,9 +87,8 @@ param(
[Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard]
# The shared dashboard resource definition.
- # To construct, see NOTES section for RESOURCE properties and create a hash table.
${Resource},
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
@@ -107,25 +100,36 @@ param(
[Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens[]]
# The dashboard lenses.
- # To construct, see NOTES section for LENS properties and create a hash table.
${Lens},
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata]))]
[System.Collections.Hashtable]
# The dashboard metadata.
${Metadata},
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter(ParameterSetName='CreateByFile', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
[System.String]
@@ -189,6 +193,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.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()
@@ -210,11 +223,11 @@ begin {
$mapping = @{
Create = 'Az.Portal.private\New-AzPortalDashboard_Create';
CreateExpanded = 'Az.Portal.private\New-AzPortalDashboard_CreateExpanded';
+ CreateViaJsonFilePath = 'Az.Portal.private\New-AzPortalDashboard_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.Portal.private\New-AzPortalDashboard_CreateViaJsonString';
CreateByFile = 'Az.Portal.custom\New-AzPortalDashboard';
}
- if (('Create', 'CreateExpanded', 'CreateByFile') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Create', 'CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString', 'CreateByFile') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -228,6 +241,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/Portal/Portal.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Portal/Portal.Autorest/exports/ProxyCmdletDefinitions.ps1
index fdbd5f5a8b0f..0273527c5b96 100644
--- a/generated/Portal/Portal.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Portal/Portal.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -27,7 +27,7 @@ Get-AzPortalDashboard -ResourceGroupName my-rg -Name mydashboard
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IPortalIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard
+Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -42,7 +42,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.portal/get-azportaldashboard
#>
function Get-AzPortalDashboard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -74,7 +74,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IPortalIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -133,6 +132,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.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,9 +165,7 @@ begin {
List = 'Az.Portal.private\Get-AzPortalDashboard_List';
List1 = 'Az.Portal.private\Get-AzPortalDashboard_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.Portal.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 {
@@ -173,6 +179,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)
@@ -218,16 +227,16 @@ end {
<#
.Synopsis
-Creates or updates a Dashboard.
+create a Dashboard.
.Description
-Creates or updates a Dashboard.
+create a Dashboard.
.Example
New-AzPortalDashboard -DashboardPath .\resources\dash1.json -ResourceGroupName mydash-rg -DashboardName my-dashboard03
.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard
+Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard
+Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -235,7 +244,7 @@ To create the parameters described below, construct a hash table containing the
LENS : The dashboard lenses.
Order : The lens order.
- Part : The dashboard parts.
+ Part >: The dashboard parts.
PositionColSpan : The dashboard's part column span.
PositionRowSpan : The dashboard's part row span.
PositionX : The dashboard's part x coordinate.
@@ -244,18 +253,12 @@ LENS : The dashboard lenses.
[Metadata ]: The dashboard len's metadata.
RESOURCE : The shared dashboard resource definition.
- Location : The geo-location where the resource lives
+ [Location ]: The geo-location where the resource lives
[Tag ]: Resource tags.
[(Any) ]: This indicates any property can be added to this object.
- [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
- [SystemDataCreatedBy ]: The identity that created the resource.
- [SystemDataCreatedByType ]: The type of identity that created the resource.
- [SystemDataLastModifiedAt ]: The timestamp of resource last modification (UTC)
- [SystemDataLastModifiedBy ]: The identity that last modified the resource.
- [SystemDataLastModifiedByType ]: The type of identity that last modified the resource.
- [Lens ]: The dashboard lenses.
+ [Lens >]: The dashboard lenses.
Order : The lens order.
- Part : The dashboard parts.
+ Part >: The dashboard parts.
PositionColSpan : The dashboard's part column span.
PositionRowSpan : The dashboard's part row span.
PositionX : The dashboard's part x coordinate.
@@ -268,7 +271,7 @@ RESOURCE : The shared dashboard resource definition.
https://learn.microsoft.com/powershell/module/az.portal/new-azportaldashboard
#>
function New-AzPortalDashboard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -295,9 +298,8 @@ param(
[Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard]
# The shared dashboard resource definition.
- # To construct, see NOTES section for RESOURCE properties and create a hash table.
${Resource},
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
@@ -309,25 +311,36 @@ param(
[Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens[]]
# The dashboard lenses.
- # To construct, see NOTES section for LENS properties and create a hash table.
${Lens},
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata]))]
[System.Collections.Hashtable]
# The dashboard metadata.
${Metadata},
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter(ParameterSetName='CreateByFile', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
[System.String]
@@ -391,6 +404,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.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()
@@ -412,11 +434,11 @@ begin {
$mapping = @{
Create = 'Az.Portal.private\New-AzPortalDashboard_Create';
CreateExpanded = 'Az.Portal.private\New-AzPortalDashboard_CreateExpanded';
+ CreateViaJsonFilePath = 'Az.Portal.private\New-AzPortalDashboard_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.Portal.private\New-AzPortalDashboard_CreateViaJsonString';
CreateByFile = 'Az.Portal.custom\New-AzPortalDashboard';
}
- if (('Create', 'CreateExpanded', 'CreateByFile') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Create', 'CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString', 'CreateByFile') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -430,6 +452,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)
@@ -530,7 +555,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IPortalIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -595,6 +619,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.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()
@@ -617,9 +650,7 @@ begin {
Delete = 'Az.Portal.private\Remove-AzPortalDashboard_Delete';
DeleteViaIdentity = 'Az.Portal.private\Remove-AzPortalDashboard_DeleteViaIdentity';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -633,6 +664,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)
@@ -678,9 +712,9 @@ end {
<#
.Synopsis
-Updates an existing Dashboard.
+update an existing Dashboard.
.Description
-Updates an existing Dashboard.
+update an existing Dashboard.
.Example
Update-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"}
.Example
@@ -689,7 +723,7 @@ Get-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 | Update-AzPorta
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IPortalIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard
+Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -703,7 +737,7 @@ INPUTOBJECT : Identity Parameter
LENS : The dashboard lenses.
Order : The lens order.
- Part : The dashboard parts.
+ Part >: The dashboard parts.
PositionColSpan : The dashboard's part column span.
PositionRowSpan : The dashboard's part row span.
PositionX : The dashboard's part x coordinate.
@@ -714,10 +748,12 @@ LENS : The dashboard lenses.
https://learn.microsoft.com/powershell/module/az.portal/update-azportaldashboard
#>
function Update-AzPortalDashboard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Alias('DashboardName')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Path')]
[System.String]
@@ -725,6 +761,8 @@ param(
${Name},
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Path')]
[System.String]
# The name of the resource group.
@@ -732,6 +770,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpdateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -743,31 +783,44 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IPortalIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens[]]
# The dashboard lenses.
- # To construct, see NOTES section for LENS properties and create a hash table.
${Lens},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata]))]
[System.Collections.Hashtable]
# The dashboard metadata.
${Metadata},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IPatchableDashboardTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IPatchableDashboardTags]))]
[System.Collections.Hashtable]
# Resource tags
${Tag},
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -824,6 +877,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.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()
@@ -845,10 +907,10 @@ begin {
$mapping = @{
UpdateExpanded = 'Az.Portal.private\Update-AzPortalDashboard_UpdateExpanded';
UpdateViaIdentityExpanded = 'Az.Portal.private\Update-AzPortalDashboard_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.Portal.private\Update-AzPortalDashboard_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.Portal.private\Update-AzPortalDashboard_UpdateViaJsonString';
}
- if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.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 {
@@ -862,6 +924,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)
@@ -914,12 +979,12 @@ Creates or updates a Dashboard.
Set-AzPortalDashboard -DashboardPath .\resources\dash1-update.json -ResourceGroupName my-rg -DashboardName dashbase03
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard
+Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard
.Link
https://learn.microsoft.com/powershell/module/az.portal/set-azportaldashboard
#>
function Set-AzPortalDashboard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -994,6 +1059,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.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()
@@ -1015,9 +1089,7 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.Portal.custom\Set-AzPortalDashboard';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1031,6 +1103,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/Portal/Portal.Autorest/exports/Remove-AzPortalDashboard.ps1 b/generated/Portal/Portal.Autorest/exports/Remove-AzPortalDashboard.ps1
index 298789708848..2a09050563f4 100644
--- a/generated/Portal/Portal.Autorest/exports/Remove-AzPortalDashboard.ps1
+++ b/generated/Portal/Portal.Autorest/exports/Remove-AzPortalDashboard.ps1
@@ -71,7 +71,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IPortalIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -136,6 +135,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.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()
@@ -158,9 +166,7 @@ begin {
Delete = 'Az.Portal.private\Remove-AzPortalDashboard_Delete';
DeleteViaIdentity = 'Az.Portal.private\Remove-AzPortalDashboard_DeleteViaIdentity';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -174,6 +180,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/Portal/Portal.Autorest/exports/Set-AzPortalDashboard.ps1 b/generated/Portal/Portal.Autorest/exports/Set-AzPortalDashboard.ps1
index 31b1dab984ee..1f83d67a1f5b 100644
--- a/generated/Portal/Portal.Autorest/exports/Set-AzPortalDashboard.ps1
+++ b/generated/Portal/Portal.Autorest/exports/Set-AzPortalDashboard.ps1
@@ -23,12 +23,12 @@ Creates or updates a Dashboard.
Set-AzPortalDashboard -DashboardPath .\resources\dash1-update.json -ResourceGroupName my-rg -DashboardName dashbase03
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard
+Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard
.Link
https://learn.microsoft.com/powershell/module/az.portal/set-azportaldashboard
#>
function Set-AzPortalDashboard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -103,6 +103,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.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()
@@ -124,9 +133,7 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.Portal.custom\Set-AzPortalDashboard';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -140,6 +147,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/Portal/Portal.Autorest/exports/Update-AzPortalDashboard.ps1 b/generated/Portal/Portal.Autorest/exports/Update-AzPortalDashboard.ps1
index 91ee06047b96..555d2ca07920 100644
--- a/generated/Portal/Portal.Autorest/exports/Update-AzPortalDashboard.ps1
+++ b/generated/Portal/Portal.Autorest/exports/Update-AzPortalDashboard.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Updates an existing Dashboard.
+update an existing Dashboard.
.Description
-Updates an existing Dashboard.
+update an existing Dashboard.
.Example
Update-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"}
.Example
@@ -27,7 +27,7 @@ Get-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 | Update-AzPorta
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IPortalIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard
+Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -41,7 +41,7 @@ INPUTOBJECT : Identity Parameter
LENS : The dashboard lenses.
Order : The lens order.
- Part : The dashboard parts.
+ Part >: The dashboard parts.
PositionColSpan : The dashboard's part column span.
PositionRowSpan : The dashboard's part row span.
PositionX : The dashboard's part x coordinate.
@@ -52,10 +52,12 @@ LENS : The dashboard lenses.
https://learn.microsoft.com/powershell/module/az.portal/update-azportaldashboard
#>
function Update-AzPortalDashboard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Alias('DashboardName')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Path')]
[System.String]
@@ -63,6 +65,8 @@ param(
${Name},
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Path')]
[System.String]
# The name of the resource group.
@@ -70,6 +74,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpdateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -81,31 +87,44 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IPortalIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens[]]
# The dashboard lenses.
- # To construct, see NOTES section for LENS properties and create a hash table.
${Lens},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata]))]
[System.Collections.Hashtable]
# The dashboard metadata.
${Metadata},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IPatchableDashboardTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IPatchableDashboardTags]))]
[System.Collections.Hashtable]
# Resource tags
${Tag},
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Category('Body')]
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -162,6 +181,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.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()
@@ -183,10 +211,10 @@ begin {
$mapping = @{
UpdateExpanded = 'Az.Portal.private\Update-AzPortalDashboard_UpdateExpanded';
UpdateViaIdentityExpanded = 'Az.Portal.private\Update-AzPortalDashboard_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.Portal.private\Update-AzPortalDashboard_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.Portal.private\Update-AzPortalDashboard_UpdateViaJsonString';
}
- if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Portal.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 {
@@ -200,6 +228,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/Portal/Portal.Autorest/generate-info.json b/generated/Portal/Portal.Autorest/generate-info.json
index 176b7564d999..befaf865a01c 100644
--- a/generated/Portal/Portal.Autorest/generate-info.json
+++ b/generated/Portal/Portal.Autorest/generate-info.json
@@ -1,3 +1,3 @@
{
- "generate_Id": "351efe1a-d585-4289-9408-d9c07e8ef900"
+ "generate_Id": "aaee2442-a92f-4fe2-abbc-96ce6b74ab42"
}
diff --git a/generated/Portal/Portal.Autorest/generated/Module.cs b/generated/Portal/Portal.Autorest/generated/Module.cs
index 1681d2e8f034..4d56fffef83c 100644
--- a/generated/Portal/Portal.Autorest/generated/Module.cs
+++ b/generated/Portal/Portal.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.Portal.Module _instance;
+
/// the ISendAsync pipeline instance
private Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.HttpPipeline _pipeline;
/// the ISendAsync pipeline instance (when proxy is enabled)
private Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Module _instance;
-
/// the singleton of this module class
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Module Instance => Microsoft.Azure.PowerShell.Cmdlets.Portal.Module._instance?? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Module._instance = new Microsoft.Azure.PowerShell.Cmdlets.Portal.Module());
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal";
@@ -125,9 +130,17 @@ public Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.HttpPipeline CreatePipe
/// 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/Portal/Portal.Autorest/generated/api/Models/Any.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Any.PowerShell.cs
index 1d0bc90164e7..cfcf623112c5 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Any.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/Any.PowerShell.cs
@@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
- /// Any object
+ /// Anything
[System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))]
public partial class Any
{
@@ -54,6 +54,14 @@ public partial class Any
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 .
@@ -125,8 +133,20 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny DeserializeF
/// a containing this model serialized to JSON text.
public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Portal.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();
+ }
}
- /// Any object
+ /// Anything
[System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))]
public partial interface IAny
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Any.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Any.cs
index 6c22514568de..676cd44c6edb 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Any.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/Any.cs
@@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
- /// Any object
+ /// Anything
public partial class Any :
Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny,
Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAnyInternal
@@ -19,13 +19,13 @@ public Any()
}
}
- /// Any object
+ /// Anything
public partial interface IAny :
Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.IJsonSerializable
{
}
- /// Any object
+ /// Anything
internal partial interface IAnyInternal
{
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Any.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Any.json.cs
index e51922ef5cee..910153633b0e 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Any.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/Any.json.cs
@@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
- /// Any object
+ /// Anything
public partial class Any
{
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/Dashboard.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/Dashboard.PowerShell.cs
deleted file mode 100644
index e8c2f456f467..000000000000
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/Dashboard.PowerShell.cs
+++ /dev/null
@@ -1,264 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for license information.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
-
- /// The shared dashboard resource definition.
- [System.ComponentModel.TypeConverter(typeof(DashboardTypeConverter))]
- public partial class Dashboard
- {
-
- ///
- /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
- /// object before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Collections.IDictionary content that should be used.
-
- partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
-
- ///
- /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
-
- partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
-
- ///
- /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output
- /// parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
-
- ///
- /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output
- /// parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal Dashboard(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.Portal.Models.Api20221201Preview.IDashboardInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesWithProvisioningStateTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
- }
- if (content.Contains("SystemDataCreatedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
- }
- if (content.Contains("SystemData"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("Tag"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom);
- }
- if (content.Contains("Location"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
- }
- if (content.Contains("Lens"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal)this).Lens = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[]) content.GetValueForProperty("Lens",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal)this).Lens, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardLensTypeConverter.ConvertFrom));
- }
- if (content.Contains("Metadata"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesWithProvisioningStateMetadataTypeConverter.ConvertFrom);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState.CreateFrom);
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal Dashboard(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.Portal.Models.Api20221201Preview.IDashboardInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesWithProvisioningStateTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
- }
- if (content.Contains("SystemDataCreatedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
- }
- if (content.Contains("SystemData"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("Tag"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom);
- }
- if (content.Contains("Location"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
- }
- if (content.Contains("Lens"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal)this).Lens = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[]) content.GetValueForProperty("Lens",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal)this).Lens, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardLensTypeConverter.ConvertFrom));
- }
- if (content.Contains("Metadata"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesWithProvisioningStateMetadataTypeConverter.ConvertFrom);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState.CreateFrom);
- }
- 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.Portal.Models.Api20221201Preview.IDashboard DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new Dashboard(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.Portal.Models.Api20221201Preview.IDashboard DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new Dashboard(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.Portal.Models.Api20221201Preview.IDashboard FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Runtime.SerializationMode.IncludeAll)?.ToString();
- }
- /// The shared dashboard resource definition.
- [System.ComponentModel.TypeConverter(typeof(DashboardTypeConverter))]
- public partial interface IDashboard
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/Dashboard.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/Dashboard.cs
deleted file mode 100644
index 4580ef72e667..000000000000
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/Dashboard.cs
+++ /dev/null
@@ -1,176 +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.Portal.Models.Api20221201Preview
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
-
- /// The shared dashboard resource definition.
- public partial class Dashboard :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.IValidates
- {
- ///
- /// Backing field for Inherited model
- ///
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.TrackedResource();
-
- ///
- /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
- public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).Id; }
-
- /// The dashboard lenses.
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[] Lens { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)Property).Lens; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)Property).Lens = value ?? null /* arrayOf */; }
-
- /// The geo-location where the resource lives
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
- public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; }
-
- /// The dashboard metadata.
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)Property).Metadata = value ?? null /* model class */; }
-
- /// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesWithProvisioningState()); set { {_property = value;} } }
-
- /// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)Property).ProvisioningState = value; }
-
- /// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).Id = value; }
-
- /// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).Name = value; }
-
- /// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; }
-
- /// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).Type = value; }
-
- /// The name of the resource
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
- public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).Name; }
-
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState _property;
-
- /// The resource-specific properties for this resource.
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesWithProvisioningState()); set => this._property = value; }
-
- /// The status of the last operation.
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)Property).ProvisioningState; }
-
- ///
- /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemData; }
-
- /// The timestamp of resource creation (UTC).
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
-
- /// The identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; }
-
- /// The type of identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.CreatedByType)""); }
-
- /// The timestamp of resource last modification (UTC)
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
-
- /// The identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; }
-
- /// The type of identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.CreatedByType)""); }
-
- /// Resource tags.
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; }
-
- ///
- /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
- public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IResourceInternal)__trackedResource).Type; }
-
- /// Creates an new instance.
- public Dashboard()
- {
-
- }
-
- /// Validates that this object meets the validation criteria.
- /// an instance that will receive validation
- /// events.
- ///
- /// A that will be complete when validation is completed.
- ///
- public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.IEventListener eventListener)
- {
- await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource);
- await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource);
- }
- }
- /// The shared dashboard resource definition.
- public partial interface IDashboard :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResource
- {
- /// The dashboard lenses.
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"The dashboard lenses.",
- SerializedName = @"lenses",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[] Lens { get; set; }
- /// The dashboard metadata.
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"The dashboard metadata.",
- SerializedName = @"metadata",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata Metadata { get; set; }
- /// The status of the last operation.
- [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"The status of the last operation.",
- SerializedName = @"provisioningState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState? ProvisioningState { get; }
-
- }
- /// The shared dashboard resource definition.
- internal partial interface IDashboardInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ITrackedResourceInternal
- {
- /// The dashboard lenses.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[] Lens { get; set; }
- /// The dashboard metadata.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata Metadata { get; set; }
- /// The resource-specific properties for this resource.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState Property { get; set; }
- /// The status of the last operation.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState? ProvisioningState { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.PowerShell.cs
new file mode 100644
index 000000000000..78e540cff884
--- /dev/null
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.PowerShell.cs
@@ -0,0 +1,284 @@
+// 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.Portal.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
+
+ /// The shared dashboard resource definition.
+ [System.ComponentModel.TypeConverter(typeof(DashboardTypeConverter))]
+ public partial class Dashboard
+ {
+
+ ///
+ /// 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 Dashboard(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.Portal.Models.IDashboardInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningStateTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SystemDataCreatedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ }
+ if (content.Contains("SystemDataCreatedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ }
+ if (content.Contains("SystemData"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.SystemDataTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Id"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ }
+ if (content.Contains("Name"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ }
+ if (content.Contains("Type"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ }
+ if (content.Contains("Tag"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.TrackedResourceTagsTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Location"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
+ }
+ if (content.Contains("Lens"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal)this).Lens = (System.Collections.Generic.List) content.GetValueForProperty("Lens",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal)this).Lens, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardLensTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("Metadata"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningStateMetadataTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal)this).ProvisioningState, 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 Dashboard(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.Portal.Models.IDashboardInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningStateTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SystemDataCreatedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ }
+ if (content.Contains("SystemDataCreatedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ }
+ if (content.Contains("SystemData"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.SystemDataTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Id"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ }
+ if (content.Contains("Name"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ }
+ if (content.Contains("Type"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ }
+ if (content.Contains("Tag"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.TrackedResourceTagsTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Location"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
+ }
+ if (content.Contains("Lens"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal)this).Lens = (System.Collections.Generic.List) content.GetValueForProperty("Lens",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal)this).Lens, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardLensTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("Metadata"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningStateMetadataTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal)this).ProvisioningState, 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.Portal.Models.IDashboard DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new Dashboard(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.Portal.Models.IDashboard DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new Dashboard(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.Portal.Models.IDashboard FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.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();
+ }
+ }
+ /// The shared dashboard resource definition.
+ [System.ComponentModel.TypeConverter(typeof(DashboardTypeConverter))]
+ public partial interface IDashboard
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/Dashboard.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.TypeConverter.cs
similarity index 97%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/Dashboard.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.TypeConverter.cs
index 84a391928a3e..ee50583716a4 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/Dashboard.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api20221201Preview.IDashboard ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.cs
new file mode 100644
index 000000000000..fb9c36d0d475
--- /dev/null
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.cs
@@ -0,0 +1,208 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
+
+ /// The shared dashboard resource definition.
+ public partial class Dashboard :
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.IValidates
+ {
+ ///
+ /// Backing field for Inherited model
+ ///
+ private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.TrackedResource();
+
+ ///
+ /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
+ public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Id; }
+
+ /// The dashboard lenses.
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
+ public System.Collections.Generic.List Lens { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)Property).Lens; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)Property).Lens = value ?? null /* arrayOf */; }
+
+ /// The geo-location where the resource lives
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
+ public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; }
+
+ /// The dashboard metadata.
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
+ public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)Property).Metadata = value ?? null /* model class */; }
+
+ /// Internal Acessors for Property
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningState()); set { {_property = value;} } }
+
+ /// Internal Acessors for ProvisioningState
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)Property).ProvisioningState = value; }
+
+ /// Internal Acessors for Id
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Id = value; }
+
+ /// Internal Acessors for Name
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Name = value; }
+
+ /// Internal Acessors for SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemData = value; }
+
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value; }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value; }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value; }
+
+ /// Internal Acessors for Type
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Type = value; }
+
+ /// The name of the resource
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
+ public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Name; }
+
+ /// Backing field for property.
+ private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState _property;
+
+ /// The resource-specific properties for this resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningState()); set => this._property = value; }
+
+ /// The status of the last operation.
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
+ public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)Property).ProvisioningState; }
+
+ /// Gets the resource group name
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
+ public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); }
+
+ ///
+ /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; }
+
+ /// The timestamp of resource creation (UTC).
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; }
+
+ /// The identity that created the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; }
+
+ /// The type of identity that created the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; }
+
+ /// The timestamp of resource last modification (UTC)
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; }
+
+ /// The identity that last modified the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; }
+
+ /// The type of identity that last modified the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; }
+
+ /// Resource tags.
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
+ public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
+ public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Type; }
+
+ /// Creates an new instance.
+ public Dashboard()
+ {
+
+ }
+
+ /// Validates that this object meets the validation criteria.
+ /// an instance that will receive validation
+ /// events.
+ ///
+ /// A that will be complete when validation is completed.
+ ///
+ public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.IEventListener eventListener)
+ {
+ await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource);
+ await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource);
+ }
+ }
+ /// The shared dashboard resource definition.
+ public partial interface IDashboard :
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.IJsonSerializable,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResource
+ {
+ /// The dashboard lenses.
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
+ Description = @"The dashboard lenses.",
+ SerializedName = @"lenses",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens) })]
+ System.Collections.Generic.List Lens { get; set; }
+ /// The dashboard metadata.
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
+ Description = @"The dashboard metadata.",
+ SerializedName = @"metadata",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata Metadata { get; set; }
+ /// The status of the last operation.
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
+ Description = @"The status of the last operation.",
+ SerializedName = @"provisioningState",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Portal.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")]
+ string ProvisioningState { get; }
+
+ }
+ /// The shared dashboard resource definition.
+ internal partial interface IDashboardInternal :
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ITrackedResourceInternal
+ {
+ /// The dashboard lenses.
+ System.Collections.Generic.List Lens { get; set; }
+ /// The dashboard metadata.
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata Metadata { get; set; }
+ /// The resource-specific properties for this resource.
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState Property { get; set; }
+ /// The status of the last operation.
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Portal.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")]
+ string ProvisioningState { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/Dashboard.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.json.cs
similarity index 91%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/Dashboard.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.json.cs
index 1c81a4598de8..838e28fe1329 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/Dashboard.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -65,19 +65,17 @@ internal Dashboard(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonOb
{
return;
}
- __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.TrackedResource(json);
- {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesWithProvisioningState.FromJson(__jsonProperties) : Property;}
+ __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.TrackedResource(json);
+ {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningState.FromJson(__jsonProperties) : _property;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard.
///
/// a to deserialize from.
- ///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard.
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new Dashboard(json) : null;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardLens.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardLens.PowerShell.cs
similarity index 67%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardLens.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardLens.PowerShell.cs
index 2b7fd50fd436..b87e200b6158 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardLens.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardLens.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,7 +55,15 @@ public partial class DashboardLens
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into a new instance of 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.
@@ -70,21 +78,21 @@ internal DashboardLens(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Order"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLensInternal)this).Order = (int) content.GetValueForProperty("Order",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLensInternal)this).Order, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLensInternal)this).Order = (int) content.GetValueForProperty("Order",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLensInternal)this).Order, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("Part"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLensInternal)this).Part = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardParts[]) content.GetValueForProperty("Part",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLensInternal)this).Part, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartsTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLensInternal)this).Part = (System.Collections.Generic.List) content.GetValueForProperty("Part",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLensInternal)this).Part, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartsTypeConverter.ConvertFrom));
}
if (content.Contains("Metadata"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLensInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLensInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLensInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLensInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -99,41 +107,41 @@ internal DashboardLens(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Order"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLensInternal)this).Order = (int) content.GetValueForProperty("Order",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLensInternal)this).Order, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLensInternal)this).Order = (int) content.GetValueForProperty("Order",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLensInternal)this).Order, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("Part"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLensInternal)this).Part = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardParts[]) content.GetValueForProperty("Part",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLensInternal)this).Part, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartsTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLensInternal)this).Part = (System.Collections.Generic.List) content.GetValueForProperty("Part",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLensInternal)this).Part, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartsTypeConverter.ConvertFrom));
}
if (content.Contains("Metadata"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLensInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLensInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLensInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLensInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DashboardLens(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.Portal.Models.Api20221201Preview.IDashboardLens DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DashboardLens(content);
}
@@ -143,12 +151,24 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Previe
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.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();
+ }
}
/// A dashboard lens.
[System.ComponentModel.TypeConverter(typeof(DashboardLensTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardLens.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardLens.TypeConverter.cs
similarity index 97%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardLens.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardLens.TypeConverter.cs
index 6d5c546d78c5..d7552e5e8b82 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardLens.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardLens.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api20221201Preview.IDashboardLens ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardLens.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardLens.cs
similarity index 77%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardLens.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardLens.cs
index 32880ab9b564..bd4b969598ca 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardLens.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardLens.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// A dashboard lens.
public partial class DashboardLens :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLensInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLensInternal
{
/// Backing field for property.
@@ -28,11 +28,11 @@ public partial class DashboardLens :
public int Order { get => this._order; set => this._order = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardParts[] _part;
+ private System.Collections.Generic.List _part;
/// The dashboard parts.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardParts[] Part { get => this._part; set => this._part = value; }
+ public System.Collections.Generic.List Part { get => this._part; set => this._part = value; }
/// Creates an new instance.
public DashboardLens()
@@ -48,6 +48,9 @@ public partial interface IDashboardLens :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard len's metadata.",
SerializedName = @"metadata",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) })]
@@ -56,6 +59,9 @@ public partial interface IDashboardLens :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = true,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The lens order.",
SerializedName = @"order",
PossibleTypes = new [] { typeof(int) })]
@@ -64,10 +70,13 @@ public partial interface IDashboardLens :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = true,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard parts.",
SerializedName = @"parts",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardParts) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardParts[] Part { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardParts) })]
+ System.Collections.Generic.List Part { get; set; }
}
/// A dashboard lens.
@@ -79,7 +88,7 @@ internal partial interface IDashboardLensInternal
/// The lens order.
int Order { get; set; }
/// The dashboard parts.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardParts[] Part { get; set; }
+ System.Collections.Generic.List Part { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardLens.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardLens.json.cs
similarity index 88%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardLens.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardLens.json.cs
index 7606d90b7977..bac13ce4f7c6 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardLens.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardLens.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -65,20 +65,18 @@ internal DashboardLens(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.Js
{
return;
}
- {_order = If( json?.PropertyT("order"), out var __jsonOrder) ? (int)__jsonOrder : Order;}
- {_part = If( json?.PropertyT("parts"), out var __jsonParts) ? If( __jsonParts as Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api20221201Preview.IDashboardParts) (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardParts.FromJson(__u) )) ))() : null : Part;}
- {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Any.FromJson(__jsonMetadata) : Metadata;}
+ {_order = If( json?.PropertyT("order"), out var __jsonOrder) ? (int)__jsonOrder : _order;}
+ {_part = If( json?.PropertyT("parts"), out var __jsonParts) ? If( __jsonParts as Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.IDashboardParts) (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardParts.FromJson(__u) )) ))() : null : _part;}
+ {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Any.FromJson(__jsonMetadata) : _metadata;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens.
///
/// a to deserialize from.
- ///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens.
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new DashboardLens(json) : null;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardListResult.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardListResult.PowerShell.cs
similarity index 71%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardListResult.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardListResult.PowerShell.cs
index e780bf314942..a875d54c7844 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardListResult.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardListResult.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,7 +55,15 @@ public partial class DashboardListResult
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into a new instance of 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.
@@ -70,17 +78,17 @@ internal DashboardListResult(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResultInternal)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.
@@ -95,37 +103,37 @@ internal DashboardListResult(global::System.Management.Automation.PSObject conte
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResultInternal)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.Portal.Models.Api20221201Preview.IDashboardListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DashboardListResult(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.Portal.Models.Api20221201Preview.IDashboardListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DashboardListResult(content);
}
@@ -135,12 +143,24 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Previe
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.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();
+ }
}
/// The response of a Dashboard list operation.
[System.ComponentModel.TypeConverter(typeof(DashboardListResultTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardListResult.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardListResult.TypeConverter.cs
similarity index 96%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardListResult.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardListResult.TypeConverter.cs
index 88dfde11c189..40db1275ed32 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardListResult.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardListResult.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api20221201Preview.IDashboardListResult ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResult ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardListResult).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResult).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardListResult.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardListResult.cs
similarity index 73%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardListResult.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardListResult.cs
index b403ce116ec3..5ebe4bf9d5d9 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardListResult.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardListResult.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// The response of a Dashboard list operation.
public partial class DashboardListResult :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardListResult,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardListResultInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResult,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResultInternal
{
/// Backing field for property.
@@ -21,11 +21,11 @@ public partial class DashboardListResult :
public string NextLink { get => this._nextLink; set => this._nextLink = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard[] _value;
+ private System.Collections.Generic.List _value;
/// The Dashboard items on this page
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard[] 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 DashboardListResult()
@@ -41,6 +41,9 @@ public partial interface IDashboardListResult :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The link to the next page of items",
SerializedName = @"nextLink",
PossibleTypes = new [] { typeof(string) })]
@@ -49,10 +52,13 @@ public partial interface IDashboardListResult :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = true,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The Dashboard items on this page",
SerializedName = @"value",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard[] Value { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard) })]
+ System.Collections.Generic.List Value { get; set; }
}
/// The response of a Dashboard list operation.
@@ -62,7 +68,7 @@ internal partial interface IDashboardListResultInternal
/// The link to the next page of items
string NextLink { get; set; }
/// The Dashboard items on this page
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboard[] Value { get; set; }
+ System.Collections.Generic.List Value { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardListResult.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardListResult.json.cs
similarity index 89%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardListResult.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardListResult.json.cs
index da5cb27b070c..affd308deb48 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardListResult.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardListResult.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -65,19 +65,19 @@ internal DashboardListResult(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.J
{
return;
}
- {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api20221201Preview.IDashboard) (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.Dashboard.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.Portal.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.Portal.Models.IDashboard) (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Dashboard.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.Portal.Models.Api20221201Preview.IDashboardListResult.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResult.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardListResult.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResult.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new DashboardListResult(json) : null;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartMetadata.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartMetadata.PowerShell.cs
similarity index 77%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartMetadata.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartMetadata.PowerShell.cs
index adfd768ca033..afc1e9b265ae 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartMetadata.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartMetadata.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,7 +55,15 @@ public partial class DashboardPartMetadata
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into a new instance of 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.
@@ -70,13 +78,13 @@ internal DashboardPartMetadata(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)this).Type, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -91,35 +99,33 @@ internal DashboardPartMetadata(global::System.Management.Automation.PSObject con
// actually deserialize
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)this).Type, 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.Portal.Models.Api20221201Preview.IDashboardPartMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DashboardPartMetadata(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.Portal.Models.Api20221201Preview.IDashboardPartMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DashboardPartMetadata(content);
}
@@ -129,12 +135,24 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Previe
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.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();
+ }
}
/// A dashboard part metadata.
[System.ComponentModel.TypeConverter(typeof(DashboardPartMetadataTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartMetadata.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartMetadata.TypeConverter.cs
similarity index 96%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartMetadata.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartMetadata.TypeConverter.cs
index a1de1bed74bb..6f0465265367 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartMetadata.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartMetadata.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api20221201Preview.IDashboardPartMetadata ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartMetadata.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartMetadata.cs
similarity index 83%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartMetadata.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartMetadata.cs
index 22bd4a776da6..cf06ad6cdfd9 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartMetadata.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartMetadata.cs
@@ -3,18 +3,18 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// A dashboard part metadata.
public partial class DashboardPartMetadata :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal
{
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal.Type { get => this._type; set { {_type = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal.Type { get => this._type; set { {_type = value;} } }
/// Backing field for property.
private string _type= @"Extension/HubsExtension/PartType/MarkdownPart";
@@ -37,6 +37,9 @@ public partial interface IDashboardPartMetadata :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = true,
ReadOnly = true,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard part metadata type.",
SerializedName = @"type",
PossibleTypes = new [] { typeof(string) })]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartMetadata.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartMetadata.json.cs
similarity index 92%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartMetadata.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartMetadata.json.cs
index 2e90651a4e9b..e9cc5190f4f2 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartMetadata.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartMetadata.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -65,20 +65,20 @@ internal DashboardPartMetadata(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime
{
return;
}
- {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;}
+ {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata.
- /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata interface is polymorphic,
- /// and the precise model class that will get deserialized is determined at runtime based on the payload.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata.
+ /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata interface is polymorphic, and the precise
+ /// model class that will get deserialized is determined at runtime based on the payload.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json))
{
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardParts.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.PowerShell.cs
similarity index 58%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardParts.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.PowerShell.cs
index 79f79b2bf2c0..ef5a5122575b 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardParts.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,7 +55,15 @@ public partial class DashboardParts
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into a new instance of 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.
@@ -70,41 +78,41 @@ internal DashboardParts(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Position"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).Position = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPosition) content.GetValueForProperty("Position",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).Position, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartsPositionTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).Position = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition) content.GetValueForProperty("Position",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).Position, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartsPositionTypeConverter.ConvertFrom);
}
if (content.Contains("Metadata"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartMetadataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartMetadataTypeConverter.ConvertFrom);
}
if (content.Contains("PositionX"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionX = (int) content.GetValueForProperty("PositionX",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionX, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionX = (int) content.GetValueForProperty("PositionX",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionX, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("PositionY"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionY = (int) content.GetValueForProperty("PositionY",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionY, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionY = (int) content.GetValueForProperty("PositionY",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionY, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("PositionRowSpan"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionRowSpan = (int) content.GetValueForProperty("PositionRowSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionRowSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionRowSpan = (int) content.GetValueForProperty("PositionRowSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionRowSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("PositionColSpan"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionColSpan = (int) content.GetValueForProperty("PositionColSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionColSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionColSpan = (int) content.GetValueForProperty("PositionColSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionColSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("PositionMetadata"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionMetadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("PositionMetadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionMetadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionMetadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("PositionMetadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionMetadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
}
if (content.Contains("MetadataType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).MetadataType = (string) content.GetValueForProperty("MetadataType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).MetadataType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).MetadataType = (string) content.GetValueForProperty("MetadataType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).MetadataType, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -119,61 +127,61 @@ internal DashboardParts(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Position"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).Position = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPosition) content.GetValueForProperty("Position",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).Position, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartsPositionTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).Position = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition) content.GetValueForProperty("Position",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).Position, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartsPositionTypeConverter.ConvertFrom);
}
if (content.Contains("Metadata"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartMetadataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartMetadataTypeConverter.ConvertFrom);
}
if (content.Contains("PositionX"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionX = (int) content.GetValueForProperty("PositionX",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionX, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionX = (int) content.GetValueForProperty("PositionX",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionX, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("PositionY"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionY = (int) content.GetValueForProperty("PositionY",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionY, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionY = (int) content.GetValueForProperty("PositionY",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionY, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("PositionRowSpan"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionRowSpan = (int) content.GetValueForProperty("PositionRowSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionRowSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionRowSpan = (int) content.GetValueForProperty("PositionRowSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionRowSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("PositionColSpan"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionColSpan = (int) content.GetValueForProperty("PositionColSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionColSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionColSpan = (int) content.GetValueForProperty("PositionColSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionColSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("PositionMetadata"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionMetadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("PositionMetadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).PositionMetadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionMetadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("PositionMetadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).PositionMetadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
}
if (content.Contains("MetadataType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).MetadataType = (string) content.GetValueForProperty("MetadataType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal)this).MetadataType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).MetadataType = (string) content.GetValueForProperty("MetadataType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal)this).MetadataType, 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.Portal.Models.Api20221201Preview.IDashboardParts DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardParts DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DashboardParts(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.Portal.Models.Api20221201Preview.IDashboardParts DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardParts DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DashboardParts(content);
}
@@ -183,12 +191,24 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Previe
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardParts FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardParts FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.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();
+ }
}
/// A dashboard part.
[System.ComponentModel.TypeConverter(typeof(DashboardPartsTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardParts.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.TypeConverter.cs
similarity index 97%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardParts.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.TypeConverter.cs
index 75b82c7a6c0a..b62719f0622d 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardParts.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api20221201Preview.IDashboardParts ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardParts ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardParts).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardParts).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardParts.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.cs
similarity index 65%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardParts.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.cs
index c0ed934132ae..5713be78b204 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardParts.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.cs
@@ -3,62 +3,62 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// A dashboard part.
public partial class DashboardParts :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardParts,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardParts,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata _metadata;
+ private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata _metadata;
/// The dashboard part's metadata.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartMetadata()); set => this._metadata = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartMetadata()); set => this._metadata = value; }
/// The dashboard part metadata type.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string MetadataType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal)Metadata).Type; }
+ public string MetadataType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)Metadata).Type; }
/// Internal Acessors for Metadata
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal.Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartMetadata()); set { {_metadata = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal.Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartMetadata()); set { {_metadata = value;} } }
/// Internal Acessors for MetadataType
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal.MetadataType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal)Metadata).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal)Metadata).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal.MetadataType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)Metadata).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)Metadata).Type = value; }
/// Internal Acessors for Position
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPosition Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsInternal.Position { get => (this._position = this._position ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartsPosition()); set { {_position = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal.Position { get => (this._position = this._position ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartsPosition()); set { {_position = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPosition _position;
+ private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition _position;
/// The dashboard's part position.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPosition Position { get => (this._position = this._position ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartsPosition()); set => this._position = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition Position { get => (this._position = this._position ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartsPosition()); set => this._position = value; }
/// The dashboard's part column span.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public int PositionColSpan { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)Position).ColSpan; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)Position).ColSpan = value ; }
+ public int PositionColSpan { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)Position).ColSpan; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)Position).ColSpan = value ; }
/// The dashboard part's metadata.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny PositionMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)Position).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)Position).Metadata = value ?? null /* model class */; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny PositionMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)Position).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)Position).Metadata = value ?? null /* model class */; }
/// The dashboard's part row span.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public int PositionRowSpan { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)Position).RowSpan; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)Position).RowSpan = value ; }
+ public int PositionRowSpan { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)Position).RowSpan; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)Position).RowSpan = value ; }
/// The dashboard's part x coordinate.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public int PositionX { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)Position).X; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)Position).X = value ; }
+ public int PositionX { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)Position).X; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)Position).X = value ; }
/// The dashboard's part y coordinate.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public int PositionY { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)Position).Y; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)Position).Y = value ; }
+ public int PositionY { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)Position).Y; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)Position).Y = value ; }
/// Creates an new instance.
public DashboardParts()
@@ -74,6 +74,9 @@ public partial interface IDashboardParts :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard part metadata type.",
SerializedName = @"type",
PossibleTypes = new [] { typeof(string) })]
@@ -82,6 +85,9 @@ public partial interface IDashboardParts :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = true,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard's part column span.",
SerializedName = @"colSpan",
PossibleTypes = new [] { typeof(int) })]
@@ -90,6 +96,9 @@ public partial interface IDashboardParts :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard part's metadata.",
SerializedName = @"metadata",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) })]
@@ -98,6 +107,9 @@ public partial interface IDashboardParts :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = true,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard's part row span.",
SerializedName = @"rowSpan",
PossibleTypes = new [] { typeof(int) })]
@@ -106,6 +118,9 @@ public partial interface IDashboardParts :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = true,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard's part x coordinate.",
SerializedName = @"x",
PossibleTypes = new [] { typeof(int) })]
@@ -114,6 +129,9 @@ public partial interface IDashboardParts :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = true,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard's part y coordinate.",
SerializedName = @"y",
PossibleTypes = new [] { typeof(int) })]
@@ -125,11 +143,11 @@ internal partial interface IDashboardPartsInternal
{
/// The dashboard part's metadata.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata Metadata { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata Metadata { get; set; }
/// The dashboard part metadata type.
string MetadataType { get; set; }
/// The dashboard's part position.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPosition Position { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition Position { get; set; }
/// The dashboard's part column span.
int PositionColSpan { get; set; }
/// The dashboard part's metadata.
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardParts.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.json.cs
similarity index 93%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardParts.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.json.cs
index 3927eecc4262..2d9389cb3264 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardParts.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -65,19 +65,19 @@ internal DashboardParts(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.J
{
return;
}
- {_position = If( json?.PropertyT("position"), out var __jsonPosition) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartsPosition.FromJson(__jsonPosition) : Position;}
- {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartMetadata.FromJson(__jsonMetadata) : Metadata;}
+ {_position = If( json?.PropertyT("position"), out var __jsonPosition) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartsPosition.FromJson(__jsonPosition) : _position;}
+ {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartMetadata.FromJson(__jsonMetadata) : _metadata;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardParts.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardParts.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardParts.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardParts.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardParts FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardParts FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new DashboardParts(json) : null;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartsPosition.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartsPosition.PowerShell.cs
similarity index 65%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartsPosition.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartsPosition.PowerShell.cs
index 3b2be0738f3b..74fd4011d3f8 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartsPosition.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartsPosition.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,7 +55,15 @@ public partial class DashboardPartsPosition
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into a new instance of 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.
@@ -70,29 +78,29 @@ internal DashboardPartsPosition(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("X"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).X = (int) content.GetValueForProperty("X",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).X, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).X = (int) content.GetValueForProperty("X",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).X, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("Y"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).Y = (int) content.GetValueForProperty("Y",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).Y, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).Y = (int) content.GetValueForProperty("Y",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).Y, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("RowSpan"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).RowSpan = (int) content.GetValueForProperty("RowSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).RowSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).RowSpan = (int) content.GetValueForProperty("RowSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).RowSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("ColSpan"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).ColSpan = (int) content.GetValueForProperty("ColSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).ColSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).ColSpan = (int) content.GetValueForProperty("ColSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).ColSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("Metadata"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -107,51 +115,49 @@ internal DashboardPartsPosition(global::System.Management.Automation.PSObject co
// actually deserialize
if (content.Contains("X"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).X = (int) content.GetValueForProperty("X",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).X, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).X = (int) content.GetValueForProperty("X",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).X, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("Y"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).Y = (int) content.GetValueForProperty("Y",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).Y, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).Y = (int) content.GetValueForProperty("Y",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).Y, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("RowSpan"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).RowSpan = (int) content.GetValueForProperty("RowSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).RowSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).RowSpan = (int) content.GetValueForProperty("RowSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).RowSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("ColSpan"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).ColSpan = (int) content.GetValueForProperty("ColSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).ColSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).ColSpan = (int) content.GetValueForProperty("ColSpan",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).ColSpan, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("Metadata"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPosition DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DashboardPartsPosition(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.Portal.Models.Api20221201Preview.IDashboardPartsPosition DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DashboardPartsPosition(content);
}
@@ -161,12 +167,24 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Previe
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPosition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.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();
+ }
}
/// The dashboard's part position.
[System.ComponentModel.TypeConverter(typeof(DashboardPartsPositionTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartsPosition.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartsPosition.TypeConverter.cs
similarity index 96%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartsPosition.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartsPosition.TypeConverter.cs
index ac20e80af3d9..a5774ddedbc0 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartsPosition.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartsPosition.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api20221201Preview.IDashboardPartsPosition ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPosition).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartsPosition.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartsPosition.cs
similarity index 90%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartsPosition.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartsPosition.cs
index 2318aacab460..8e8cb1ad6b62 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartsPosition.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartsPosition.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// The dashboard's part position.
public partial class DashboardPartsPosition :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPosition,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPositionInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPositionInternal
{
/// Backing field for property.
@@ -62,6 +62,9 @@ public partial interface IDashboardPartsPosition :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = true,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard's part column span.",
SerializedName = @"colSpan",
PossibleTypes = new [] { typeof(int) })]
@@ -70,6 +73,9 @@ public partial interface IDashboardPartsPosition :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard part's metadata.",
SerializedName = @"metadata",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) })]
@@ -78,6 +84,9 @@ public partial interface IDashboardPartsPosition :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = true,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard's part row span.",
SerializedName = @"rowSpan",
PossibleTypes = new [] { typeof(int) })]
@@ -86,6 +95,9 @@ public partial interface IDashboardPartsPosition :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = true,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard's part x coordinate.",
SerializedName = @"x",
PossibleTypes = new [] { typeof(int) })]
@@ -94,6 +106,9 @@ public partial interface IDashboardPartsPosition :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = true,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard's part y coordinate.",
SerializedName = @"y",
PossibleTypes = new [] { typeof(int) })]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartsPosition.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartsPosition.json.cs
similarity index 93%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartsPosition.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartsPosition.json.cs
index 1b30333448a7..27aa1d5eed2c 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPartsPosition.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPartsPosition.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -65,22 +65,22 @@ internal DashboardPartsPosition(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtim
{
return;
}
- {_x = If( json?.PropertyT("x"), out var __jsonX) ? (int)__jsonX : X;}
- {_y = If( json?.PropertyT("y"), out var __jsonY) ? (int)__jsonY : Y;}
- {_rowSpan = If( json?.PropertyT("rowSpan"), out var __jsonRowSpan) ? (int)__jsonRowSpan : RowSpan;}
- {_colSpan = If( json?.PropertyT("colSpan"), out var __jsonColSpan) ? (int)__jsonColSpan : ColSpan;}
- {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Any.FromJson(__jsonMetadata) : Metadata;}
+ {_x = If( json?.PropertyT("x"), out var __jsonX) ? (int)__jsonX : _x;}
+ {_y = If( json?.PropertyT("y"), out var __jsonY) ? (int)__jsonY : _y;}
+ {_rowSpan = If( json?.PropertyT("rowSpan"), out var __jsonRowSpan) ? (int)__jsonRowSpan : _rowSpan;}
+ {_colSpan = If( json?.PropertyT("colSpan"), out var __jsonColSpan) ? (int)__jsonColSpan : _colSpan;}
+ {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Any.FromJson(__jsonMetadata) : _metadata;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPosition.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPosition.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartsPosition FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new DashboardPartsPosition(json) : null;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardProperties.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardProperties.PowerShell.cs
similarity index 69%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardProperties.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardProperties.PowerShell.cs
index 9941e6e1098e..d0d3113d1e17 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardProperties.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardProperties.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,7 +55,15 @@ public partial class DashboardProperties
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into a new instance of 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.
@@ -70,17 +78,17 @@ internal DashboardProperties(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Lens"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesInternal)this).Lens = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[]) content.GetValueForProperty("Lens",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesInternal)this).Lens, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardLensTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesInternal)this).Lens = (System.Collections.Generic.List) content.GetValueForProperty("Lens",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesInternal)this).Lens, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardLensTypeConverter.ConvertFrom));
}
if (content.Contains("Metadata"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesMetadataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesMetadataTypeConverter.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.
@@ -95,37 +103,37 @@ internal DashboardProperties(global::System.Management.Automation.PSObject conte
// actually deserialize
if (content.Contains("Lens"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesInternal)this).Lens = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[]) content.GetValueForProperty("Lens",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesInternal)this).Lens, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardLensTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesInternal)this).Lens = (System.Collections.Generic.List) content.GetValueForProperty("Lens",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesInternal)this).Lens, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardLensTypeConverter.ConvertFrom));
}
if (content.Contains("Metadata"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesMetadataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesMetadataTypeConverter.ConvertFrom);
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DashboardProperties(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.Portal.Models.Api20221201Preview.IDashboardProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DashboardProperties(content);
}
@@ -135,12 +143,24 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Previe
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.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();
+ }
}
/// The shared dashboard properties.
[System.ComponentModel.TypeConverter(typeof(DashboardPropertiesTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardProperties.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardProperties.TypeConverter.cs
similarity index 96%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardProperties.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardProperties.TypeConverter.cs
index 7214b1617d4e..3965ecfb8137 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardProperties.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardProperties.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api20221201Preview.IDashboardProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardProperties.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardProperties.cs
similarity index 61%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardProperties.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardProperties.cs
index 391721c8c7be..1ba6048a6045 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardProperties.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardProperties.cs
@@ -3,29 +3,29 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// The shared dashboard properties.
public partial class DashboardProperties :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardProperties,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[] _lens;
+ private System.Collections.Generic.List _lens;
/// The dashboard lenses.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[] Lens { get => this._lens; set => this._lens = value; }
+ public System.Collections.Generic.List Lens { get => this._lens; set => this._lens = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata _metadata;
+ private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata _metadata;
/// The dashboard metadata.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesMetadata()); set => this._metadata = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesMetadata()); set => this._metadata = value; }
/// Creates an new instance.
public DashboardProperties()
@@ -41,18 +41,24 @@ public partial interface IDashboardProperties :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard lenses.",
SerializedName = @"lenses",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[] Lens { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens) })]
+ System.Collections.Generic.List Lens { get; set; }
/// The dashboard metadata.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard metadata.",
SerializedName = @"metadata",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata Metadata { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata Metadata { get; set; }
}
/// The shared dashboard properties.
@@ -60,9 +66,9 @@ internal partial interface IDashboardPropertiesInternal
{
/// The dashboard lenses.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[] Lens { get; set; }
+ System.Collections.Generic.List Lens { get; set; }
/// The dashboard metadata.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata Metadata { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata Metadata { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardProperties.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardProperties.json.cs
similarity index 89%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardProperties.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardProperties.json.cs
index fc2192d24381..58f3982edf9a 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardProperties.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardProperties.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -65,19 +65,19 @@ internal DashboardProperties(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.J
{
return;
}
- {_lens = If( json?.PropertyT("lenses"), out var __jsonLenses) ? If( __jsonLenses as Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api20221201Preview.IDashboardLens) (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardLens.FromJson(__u) )) ))() : null : Lens;}
- {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;}
+ {_lens = If( json?.PropertyT("lenses"), out var __jsonLenses) ? If( __jsonLenses as Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.IDashboardLens) (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardLens.FromJson(__u) )) ))() : null : _lens;}
+ {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesMetadata.FromJson(__jsonMetadata) : _metadata;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardProperties.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new DashboardProperties(json) : null;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.PowerShell.cs
similarity index 81%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.PowerShell.cs
index ce7d09ad030f..952c6dd2f500 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,7 +55,15 @@ public partial class DashboardPropertiesMetadata
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into a new instance of 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.
@@ -74,7 +82,7 @@ internal DashboardPropertiesMetadata(global::System.Collections.IDictionary cont
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -93,29 +101,27 @@ internal DashboardPropertiesMetadata(global::System.Management.Automation.PSObje
}
///
- /// 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.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DashboardPropertiesMetadata(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.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DashboardPropertiesMetadata(content);
}
@@ -125,12 +131,24 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Previe
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.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();
+ }
}
/// The dashboard metadata.
[System.ComponentModel.TypeConverter(typeof(DashboardPropertiesMetadataTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.TypeConverter.cs
similarity index 96%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.TypeConverter.cs
index 152cd74a570b..d4cb4e9e33ef 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.cs
similarity index 78%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.cs
index cf35f5d24cc5..c194dbbc08f5 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// The dashboard metadata.
public partial class DashboardPropertiesMetadata :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadataInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadataInternal
{
/// Creates an new instance.
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.dictionary.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.dictionary.cs
similarity index 95%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.dictionary.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.dictionary.cs
index 170a581c26ad..923bf03ffd5d 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.dictionary.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.dictionary.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source)
///
- public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesMetadata source) => source.__additionalProperties;
+ public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesMetadata source) => source.__additionalProperties;
}
}
\ No newline at end of file
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.json.cs
similarity index 94%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.json.cs
index d3cd7f4844cb..b5bc474ef962 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesMetadata.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesMetadata.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -71,13 +71,13 @@ internal DashboardPropertiesMetadata(Microsoft.Azure.PowerShell.Cmdlets.Portal.R
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new DashboardPropertiesMetadata(json) : null;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningState.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningState.PowerShell.cs
similarity index 64%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningState.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningState.PowerShell.cs
index 3d184a060ac2..e1af40a88133 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningState.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningState.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,7 +55,15 @@ public partial class DashboardPropertiesWithProvisioningState
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into a new instance of 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.
@@ -70,21 +78,21 @@ internal DashboardPropertiesWithProvisioningState(global::System.Collections.IDi
// actually deserialize
if (content.Contains("Lens"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)this).Lens = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[]) content.GetValueForProperty("Lens",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)this).Lens, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardLensTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)this).Lens = (System.Collections.Generic.List) content.GetValueForProperty("Lens",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)this).Lens, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardLensTypeConverter.ConvertFrom));
}
if (content.Contains("Metadata"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesWithProvisioningStateMetadataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningStateMetadataTypeConverter.ConvertFrom);
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)this).ProvisioningState, 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.
@@ -99,43 +107,43 @@ internal DashboardPropertiesWithProvisioningState(global::System.Management.Auto
// actually deserialize
if (content.Contains("Lens"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)this).Lens = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[]) content.GetValueForProperty("Lens",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)this).Lens, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardLensTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)this).Lens = (System.Collections.Generic.List) content.GetValueForProperty("Lens",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)this).Lens, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardLensTypeConverter.ConvertFrom));
}
if (content.Contains("Metadata"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesWithProvisioningStateMetadataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningStateMetadataTypeConverter.ConvertFrom);
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)this).ProvisioningState, 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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DashboardPropertiesWithProvisioningState(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DashboardPropertiesWithProvisioningState(content);
}
@@ -148,12 +156,24 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Previe
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.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();
+ }
}
/// Dashboard Properties with Provisioning state
[System.ComponentModel.TypeConverter(typeof(DashboardPropertiesWithProvisioningStateTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningState.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningState.TypeConverter.cs
similarity index 96%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningState.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningState.TypeConverter.cs
index 203333c15690..826370bc3cf1 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningState.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningState.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningState.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningState.cs
similarity index 55%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningState.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningState.cs
index 14111073c7bc..c99f1bc48686 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningState.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningState.cs
@@ -3,39 +3,39 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// Dashboard Properties with Provisioning state
public partial class DashboardPropertiesWithProvisioningState :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[] _lens;
+ private System.Collections.Generic.List _lens;
/// The dashboard lenses.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[] Lens { get => this._lens; set => this._lens = value; }
+ public System.Collections.Generic.List Lens { get => this._lens; set => this._lens = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata _metadata;
+ private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata _metadata;
/// The dashboard metadata.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesWithProvisioningStateMetadata()); set => this._metadata = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningStateMetadata()); set => this._metadata = value; }
/// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState? _provisioningState;
+ private string _provisioningState;
/// The status of the last operation.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState? ProvisioningState { get => this._provisioningState; }
+ public string ProvisioningState { get => this._provisioningState; }
///
/// Creates an new instance.
@@ -53,26 +53,36 @@ public partial interface IDashboardPropertiesWithProvisioningState :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard lenses.",
SerializedName = @"lenses",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[] Lens { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardLens) })]
+ System.Collections.Generic.List Lens { get; set; }
/// The dashboard metadata.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The dashboard metadata.",
SerializedName = @"metadata",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata Metadata { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata Metadata { get; set; }
/// The status of the last operation.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The status of the last operation.",
SerializedName = @"provisioningState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState? ProvisioningState { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Portal.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")]
+ string ProvisioningState { get; }
}
/// Dashboard Properties with Provisioning state
@@ -80,11 +90,12 @@ internal partial interface IDashboardPropertiesWithProvisioningStateInternal
{
/// The dashboard lenses.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardLens[] Lens { get; set; }
+ System.Collections.Generic.List Lens { get; set; }
/// The dashboard metadata.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata Metadata { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata Metadata { get; set; }
/// The status of the last operation.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ResourceProvisioningState? ProvisioningState { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Portal.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")]
+ string ProvisioningState { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningState.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningState.json.cs
similarity index 88%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningState.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningState.json.cs
index ad5bcc91d580..907a09785eb6 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningState.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningState.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -65,20 +65,20 @@ internal DashboardPropertiesWithProvisioningState(Microsoft.Azure.PowerShell.Cmd
{
return;
}
- {_lens = If( json?.PropertyT("lenses"), out var __jsonLenses) ? If( __jsonLenses as Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api20221201Preview.IDashboardLens) (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardLens.FromJson(__u) )) ))() : null : Lens;}
- {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesWithProvisioningStateMetadata.FromJson(__jsonMetadata) : Metadata;}
- {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;}
+ {_lens = If( json?.PropertyT("lenses"), out var __jsonLenses) ? If( __jsonLenses as Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.IDashboardLens) (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardLens.FromJson(__u) )) ))() : null : _lens;}
+ {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningStateMetadata.FromJson(__jsonMetadata) : _metadata;}
+ {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningState FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new DashboardPropertiesWithProvisioningState(json) : null;
}
@@ -114,7 +114,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode ToJson(Mi
container.Add("lenses",__w);
}
AddIf( null != this._metadata ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) this._metadata.ToJson(null,serializationMode) : null, "metadata" ,container.Add );
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add );
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.PowerShell.cs
similarity index 80%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.PowerShell.cs
index 3aa87c24ff86..cc82dba5f7cc 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,7 +55,15 @@ public partial class DashboardPropertiesWithProvisioningStateMetadata
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into a new instance of 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.
@@ -74,7 +82,7 @@ internal DashboardPropertiesWithProvisioningStateMetadata(global::System.Collect
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -93,29 +101,29 @@ internal DashboardPropertiesWithProvisioningStateMetadata(global::System.Managem
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DashboardPropertiesWithProvisioningStateMetadata(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DashboardPropertiesWithProvisioningStateMetadata(content);
}
@@ -128,12 +136,24 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Previe
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.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();
+ }
}
/// The dashboard metadata.
[System.ComponentModel.TypeConverter(typeof(DashboardPropertiesWithProvisioningStateMetadataTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.TypeConverter.cs
similarity index 96%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.TypeConverter.cs
index 209e93560e8e..4be7e6a3bcf6 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
/// an instance of , or null if there is no suitable
/// conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.cs
similarity index 77%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.cs
index c38fea0f9a9f..6ad2bea1d49a 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// The dashboard metadata.
public partial class DashboardPropertiesWithProvisioningStateMetadata :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadataInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadataInternal
{
///
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.dictionary.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.dictionary.cs
similarity index 94%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.dictionary.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.dictionary.cs
index 1cb25191a5c0..67d45016fb0c 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.dictionary.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.dictionary.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source)
///
- public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPropertiesWithProvisioningStateMetadata source) => source.__additionalProperties;
+ public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningStateMetadata source) => source.__additionalProperties;
}
}
\ No newline at end of file
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.json.cs
similarity index 94%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.json.cs
index 61faea0da633..71746a6ba09c 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/DashboardPropertiesWithProvisioningStateMetadata.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardPropertiesWithProvisioningStateMetadata.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -72,13 +72,13 @@ internal DashboardPropertiesWithProvisioningStateMetadata(Microsoft.Azure.PowerS
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPropertiesWithProvisioningStateMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new DashboardPropertiesWithProvisioningStateMetadata(json) : null;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs
similarity index 73%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs
index c57f994fe336..323186b6185b 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,33 +55,41 @@ public partial class ErrorAdditionalInfo
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into an instance of 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 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.Portal.Models.Api50.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ErrorAdditionalInfo(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ErrorAdditionalInfo(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -96,17 +104,17 @@ internal ErrorAdditionalInfo(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("Info"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -121,11 +129,11 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte
// actually deserialize
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("Info"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom);
}
AfterDeserializePSObject(content);
}
@@ -135,12 +143,24 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.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();
+ }
}
/// The resource management error additional info.
[System.ComponentModel.TypeConverter(typeof(ErrorAdditionalInfoTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs
similarity index 97%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs
index d6165eb922cc..290895cf9c24 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api50.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfo).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.cs b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorAdditionalInfo.cs
similarity index 82%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/ErrorAdditionalInfo.cs
index 8317df6d4136..3ddff680c5ec 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorAdditionalInfo.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// The resource management error additional info.
public partial class ErrorAdditionalInfo :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfoInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfo,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfoInternal
{
/// Backing field for property.
@@ -21,10 +21,10 @@ public partial class ErrorAdditionalInfo :
public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Any()); }
/// Internal Acessors for Info
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Any()); set { {_info = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Any()); set { {_info = value;} } }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } }
/// Backing field for property.
private string _type;
@@ -47,6 +47,9 @@ public partial interface IErrorAdditionalInfo :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The additional info.",
SerializedName = @"info",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) })]
@@ -55,6 +58,9 @@ public partial interface IErrorAdditionalInfo :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The additional info type.",
SerializedName = @"type",
PossibleTypes = new [] { typeof(string) })]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs
similarity index 93%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs
index d15d5eb7b002..29334f127b84 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -65,19 +65,19 @@ internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.J
{
return;
}
- {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;}
- {_info = If( json?.PropertyT("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Any.FromJson(__jsonInfo) : Info;}
+ {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;}
+ {_info = If( json?.PropertyT("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Any.FromJson(__jsonInfo) : _info;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfo.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfo.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo(json) : null;
}
@@ -101,11 +101,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode ToJson(Mi
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != this._info ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) this._info.ToJson(null,serializationMode) : null, "info" ,container.Add );
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorDetail.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorDetail.PowerShell.cs
similarity index 63%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorDetail.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/ErrorDetail.PowerShell.cs
index 3cc8e55ab785..9c8d53908e86 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorDetail.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorDetail.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,33 +55,41 @@ public partial class ErrorDetail
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into an instance of 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 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.Portal.Models.Api50.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ErrorDetail(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ErrorDetail(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -96,29 +104,29 @@ internal ErrorDetail(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Target, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorDetailTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorDetailTypeConverter.ConvertFrom));
}
if (content.Contains("AdditionalInfo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -133,23 +141,23 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Target, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorDetailTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorDetailTypeConverter.ConvertFrom));
}
if (content.Contains("AdditionalInfo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
}
AfterDeserializePSObject(content);
}
@@ -159,12 +167,24 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content)
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.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();
+ }
}
/// The error detail.
[System.ComponentModel.TypeConverter(typeof(ErrorDetailTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorDetail.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorDetail.TypeConverter.cs
similarity index 97%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorDetail.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/ErrorDetail.TypeConverter.cs
index 45d9d33e0878..193ecf2ad872 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorDetail.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorDetail.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api50.IErrorDetail ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorDetail.cs b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorDetail.cs
similarity index 66%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorDetail.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/ErrorDetail.cs
index 2a4f4b9e20a3..36e72625fa71 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorDetail.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorDetail.cs
@@ -3,22 +3,22 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// The error detail.
public partial class ErrorDetail :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo[] _additionalInfo;
+ private System.Collections.Generic.List _additionalInfo;
/// The error additional info.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; }
+ public System.Collections.Generic.List AdditionalInfo { get => this._additionalInfo; }
/// Backing field for property.
private string _code;
@@ -28,11 +28,11 @@ public partial class ErrorDetail :
public string Code { get => this._code; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail[] _detail;
+ private System.Collections.Generic.List _detail;
/// The error details.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail[] Detail { get => this._detail; }
+ public System.Collections.Generic.List Detail { get => this._detail; }
/// Backing field for property.
private string _message;
@@ -42,19 +42,19 @@ public partial class ErrorDetail :
public string Message { get => this._message; }
/// Internal Acessors for AdditionalInfo
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } }
/// Internal Acessors for Detail
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } }
/// Backing field for property.
private string _target;
@@ -77,14 +77,20 @@ public partial interface IErrorDetail :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error additional info.",
SerializedName = @"additionalInfo",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfo) })]
+ System.Collections.Generic.List AdditionalInfo { get; }
/// The error code.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error code.",
SerializedName = @"code",
PossibleTypes = new [] { typeof(string) })]
@@ -93,14 +99,20 @@ public partial interface IErrorDetail :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error details.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail[] Detail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail) })]
+ System.Collections.Generic.List Detail { get; }
/// The error message.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error message.",
SerializedName = @"message",
PossibleTypes = new [] { typeof(string) })]
@@ -109,6 +121,9 @@ public partial interface IErrorDetail :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error target.",
SerializedName = @"target",
PossibleTypes = new [] { typeof(string) })]
@@ -120,11 +135,11 @@ internal partial interface IErrorDetailInternal
{
/// The error additional info.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; set; }
+ System.Collections.Generic.List AdditionalInfo { get; set; }
/// The error code.
string Code { get; set; }
/// The error details.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail[] Detail { get; set; }
+ System.Collections.Generic.List Detail { get; set; }
/// The error message.
string Message { get; set; }
/// The error target.
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorDetail.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorDetail.json.cs
similarity index 84%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorDetail.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/ErrorDetail.json.cs
index e0eeb0ff486f..0e1e6d10d4d3 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorDetail.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorDetail.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -65,22 +65,20 @@ internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.Json
{
return;
}
- {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;}
- {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;}
- {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;}
- {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api50.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorDetail.FromJson(__u) )) ))() : null : Detail;}
- {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : AdditionalInfo;}
+ {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)_code;}
+ {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;}
+ {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)_target;}
+ {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorDetail.FromJson(__u) )) ))() : null : _detail;}
+ {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : _additionalInfo;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail.
///
/// a to deserialize from.
- ///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail.
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new ErrorDetail(json) : null;
}
@@ -104,19 +102,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode ToJson(Mi
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
if (null != this._detail)
{
@@ -128,7 +126,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode ToJson(Mi
container.Add("details",__w);
}
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
if (null != this._additionalInfo)
{
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorResponse.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs
similarity index 61%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorResponse.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs
index 0c676ac4114e..f08e6b05b3ca 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorResponse.PowerShell.cs
+++ b/generated/Portal/Portal.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.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -58,33 +58,41 @@ public partial class ErrorResponse
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into an instance of 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 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.Portal.Models.Api50.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api50.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.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.
@@ -99,33 +107,33 @@ internal ErrorResponse(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Error"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorDetailTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorDetailTypeConverter.ConvertFrom);
}
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Target, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorDetailTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorDetailTypeConverter.ConvertFrom));
}
if (content.Contains("AdditionalInfo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -140,27 +148,27 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Error"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorDetailTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorDetailTypeConverter.ConvertFrom);
}
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Target, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorDetailTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorDetailTypeConverter.ConvertFrom));
}
if (content.Contains("AdditionalInfo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
}
AfterDeserializePSObject(content);
}
@@ -170,12 +178,24 @@ 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.Portal.Models.Api50.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.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();
+ }
}
/// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows
/// the OData error response format.).
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorResponse.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs
similarity index 97%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorResponse.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs
index e5103f198e8a..5fee3447530b 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorResponse.TypeConverter.cs
+++ b/generated/Portal/Portal.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.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api50.IErrorResponse ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponse ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponse).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponse).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorResponse.cs b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorResponse.cs
similarity index 58%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorResponse.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/ErrorResponse.cs
index 61fcd5e19666..9ff0f08ce371 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorResponse.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorResponse.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -12,54 +12,54 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50
/// the OData error response format.).
///
public partial class ErrorResponse :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponse,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponse,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal
{
/// The error additional info.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).AdditionalInfo; }
+ public System.Collections.Generic.List AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).AdditionalInfo; }
/// The error code.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).Code; }
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Code; }
/// The error details.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).Detail; }
+ public System.Collections.Generic.List Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Detail; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail _error;
+ private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail _error;
/// The error object.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorDetail()); set => this._error = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorDetail()); set => this._error = value; }
/// The error message.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).Message; }
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Message; }
/// Internal Acessors for AdditionalInfo
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).AdditionalInfo = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).AdditionalInfo = value; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Code = value; }
/// Internal Acessors for Detail
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).Detail = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Detail = value; }
/// Internal Acessors for Error
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorDetail()); set { {_error = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorDetail()); set { {_error = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Message = value; }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).Target = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Target = value; }
/// The error target.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetailInternal)Error).Target; }
+ public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Target; }
/// Creates an new instance.
public ErrorResponse()
@@ -76,14 +76,20 @@ public partial interface IErrorResponse :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error additional info.",
SerializedName = @"additionalInfo",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorAdditionalInfo) })]
+ System.Collections.Generic.List AdditionalInfo { get; }
/// The error code.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error code.",
SerializedName = @"code",
PossibleTypes = new [] { typeof(string) })]
@@ -92,14 +98,20 @@ public partial interface IErrorResponse :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error details.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail[] Detail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail) })]
+ System.Collections.Generic.List Detail { get; }
/// The error message.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error message.",
SerializedName = @"message",
PossibleTypes = new [] { typeof(string) })]
@@ -108,6 +120,9 @@ public partial interface IErrorResponse :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error target.",
SerializedName = @"target",
PossibleTypes = new [] { typeof(string) })]
@@ -120,13 +135,13 @@ internal partial interface IErrorResponseInternal
{
/// The error additional info.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; set; }
+ System.Collections.Generic.List AdditionalInfo { get; set; }
/// The error code.
string Code { get; set; }
/// The error details.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail[] Detail { get; set; }
+ System.Collections.Generic.List Detail { get; set; }
/// The error object.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorDetail Error { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail Error { get; set; }
/// The error message.
string Message { get; set; }
/// The error target.
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorResponse.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorResponse.json.cs
similarity index 92%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorResponse.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/ErrorResponse.json.cs
index 2e79c2b78b86..eef4274b248a 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/ErrorResponse.json.cs
+++ b/generated/Portal/Portal.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.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -68,18 +68,16 @@ internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.Js
{
return;
}
- {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.ErrorDetail.FromJson(__jsonError) : Error;}
+ {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorDetail.FromJson(__jsonError) : _error;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponse.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponse.
///
/// a to deserialize from.
- ///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponse.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponse.
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadata.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.PowerShell.cs
similarity index 53%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadata.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.PowerShell.cs
index 305291e948f4..ec1421aef5a8 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadata.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,27 +55,35 @@ public partial class MarkdownPartMetadata
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into an instance of 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 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.Portal.Models.Api20221201Preview.IMarkdownPartMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MarkdownPartMetadata(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.Portal.Models.Api20221201Preview.IMarkdownPartMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MarkdownPartMetadata(content);
}
@@ -85,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Previe
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -103,49 +111,49 @@ internal MarkdownPartMetadata(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Setting"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsTypeConverter.ConvertFrom);
}
if (content.Contains("Input"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).Input = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny[]) content.GetValueForProperty("Input",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).Input, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).Input = (System.Collections.Generic.List) content.GetValueForProperty("Input",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).Input, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom));
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("SettingsContent"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingsContent = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent) content.GetValueForProperty("SettingsContent",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingsContent, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingsContent = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent) content.GetValueForProperty("SettingsContent",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingsContent, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentTypeConverter.ConvertFrom);
}
if (content.Contains("Content"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).Content, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).Content, global::System.Convert.ToString);
}
if (content.Contains("ContentSetting"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).ContentSetting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings) content.GetValueForProperty("ContentSetting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).ContentSetting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).ContentSetting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings) content.GetValueForProperty("ContentSetting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).ContentSetting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentSettingsTypeConverter.ConvertFrom);
}
if (content.Contains("SettingTitle"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingTitle = (string) content.GetValueForProperty("SettingTitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingTitle, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingTitle = (string) content.GetValueForProperty("SettingTitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingTitle, global::System.Convert.ToString);
}
if (content.Contains("SettingSubtitle"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingSubtitle = (string) content.GetValueForProperty("SettingSubtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingSubtitle, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingSubtitle = (string) content.GetValueForProperty("SettingSubtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingSubtitle, global::System.Convert.ToString);
}
if (content.Contains("SettingMarkdownSource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingMarkdownSource = (int?) content.GetValueForProperty("SettingMarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingMarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingMarkdownSource = (int?) content.GetValueForProperty("SettingMarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingMarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("SettingMarkdownUri"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingMarkdownUri = (string) content.GetValueForProperty("SettingMarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingMarkdownUri, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingMarkdownUri = (string) content.GetValueForProperty("SettingMarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingMarkdownUri, 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.
@@ -160,43 +168,43 @@ internal MarkdownPartMetadata(global::System.Management.Automation.PSObject cont
// actually deserialize
if (content.Contains("Setting"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsTypeConverter.ConvertFrom);
}
if (content.Contains("Input"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).Input = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny[]) content.GetValueForProperty("Input",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).Input, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).Input = (System.Collections.Generic.List) content.GetValueForProperty("Input",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).Input, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.AnyTypeConverter.ConvertFrom));
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("SettingsContent"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingsContent = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent) content.GetValueForProperty("SettingsContent",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingsContent, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingsContent = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent) content.GetValueForProperty("SettingsContent",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingsContent, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentTypeConverter.ConvertFrom);
}
if (content.Contains("Content"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).Content, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).Content, global::System.Convert.ToString);
}
if (content.Contains("ContentSetting"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).ContentSetting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings) content.GetValueForProperty("ContentSetting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).ContentSetting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).ContentSetting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings) content.GetValueForProperty("ContentSetting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).ContentSetting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentSettingsTypeConverter.ConvertFrom);
}
if (content.Contains("SettingTitle"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingTitle = (string) content.GetValueForProperty("SettingTitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingTitle, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingTitle = (string) content.GetValueForProperty("SettingTitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingTitle, global::System.Convert.ToString);
}
if (content.Contains("SettingSubtitle"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingSubtitle = (string) content.GetValueForProperty("SettingSubtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingSubtitle, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingSubtitle = (string) content.GetValueForProperty("SettingSubtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingSubtitle, global::System.Convert.ToString);
}
if (content.Contains("SettingMarkdownSource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingMarkdownSource = (int?) content.GetValueForProperty("SettingMarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingMarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingMarkdownSource = (int?) content.GetValueForProperty("SettingMarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingMarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("SettingMarkdownUri"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingMarkdownUri = (string) content.GetValueForProperty("SettingMarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal)this).SettingMarkdownUri, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingMarkdownUri = (string) content.GetValueForProperty("SettingMarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal)this).SettingMarkdownUri, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -205,6 +213,18 @@ internal MarkdownPartMetadata(global::System.Management.Automation.PSObject cont
/// a containing this model serialized to JSON text.
public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Portal.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();
+ }
}
/// Markdown part metadata.
[System.ComponentModel.TypeConverter(typeof(MarkdownPartMetadataTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadata.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.TypeConverter.cs
similarity index 96%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadata.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.TypeConverter.cs
index cafaaedcd136..7e704c23e0d9 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadata.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api20221201Preview.IMarkdownPartMetadata ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadata ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadata).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadata).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadata.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.cs
similarity index 59%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadata.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.cs
index 3a4bc57adbd8..04b3526db9fd 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadata.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.cs
@@ -3,71 +3,72 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// Markdown part metadata.
public partial class MarkdownPartMetadata :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadata,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadata,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal,
Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata __dashboardPartMetadata = new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartMetadata();
+ private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata __dashboardPartMetadata = new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartMetadata();
/// The content of the markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string Content { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)Setting).SettingContent; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)Setting).SettingContent = value ?? null; }
+ public string Content { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).SettingContent; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).SettingContent = value ?? null; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny[] _input;
+ private System.Collections.Generic.List _input;
/// Input to dashboard part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny[] Input { get => this._input; set => this._input = value; }
+ public System.Collections.Generic.List Input { get => this._input; set => this._input = value; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal)__dashboardPartMetadata).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal)__dashboardPartMetadata).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)__dashboardPartMetadata).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)__dashboardPartMetadata).Type = value; }
/// Internal Acessors for ContentSetting
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal.ContentSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)Setting).ContentSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)Setting).ContentSetting = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal.ContentSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).ContentSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).ContentSetting = value; }
/// Internal Acessors for Setting
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal.Setting { get => (this._setting = this._setting ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettings()); set { {_setting = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal.Setting { get => (this._setting = this._setting ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettings()); set { {_setting = value;} } }
/// Internal Acessors for SettingsContent
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataInternal.SettingsContent { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)Setting).Content; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)Setting).Content = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal.SettingsContent { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).Content; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).Content = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings _setting;
+ private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings _setting;
/// Markdown part settings.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings Setting { get => (this._setting = this._setting ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettings()); set => this._setting = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings Setting { get => (this._setting = this._setting ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettings()); set => this._setting = value; }
/// The source of the content of the markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public int? SettingMarkdownSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)Setting).SettingMarkdownSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)Setting).SettingMarkdownSource = value ?? default(int); }
+ public int? SettingMarkdownSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).SettingMarkdownSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).SettingMarkdownSource = value ?? default(int); }
/// The uri of markdown content.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string SettingMarkdownUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)Setting).SettingMarkdownUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)Setting).SettingMarkdownUri = value ?? null; }
+ public string SettingMarkdownUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).SettingMarkdownUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).SettingMarkdownUri = value ?? null; }
/// The subtitle of the markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string SettingSubtitle { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)Setting).SettingSubtitle; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)Setting).SettingSubtitle = value ?? null; }
+ public string SettingSubtitle { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).SettingSubtitle; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).SettingSubtitle = value ?? null; }
/// The title of the markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string SettingTitle { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)Setting).SettingTitle; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)Setting).SettingTitle = value ?? null; }
+ public string SettingTitle { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).SettingTitle; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).SettingTitle = value ?? null; }
/// The dashboard part metadata type.
+ [Microsoft.Azure.PowerShell.Cmdlets.Portal.Constant]
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)]
- public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal)__dashboardPartMetadata).Type; }
+ public string Type { get => "Extension/HubsExtension/PartType/MarkdownPart"; }
/// Creates an new instance.
public MarkdownPartMetadata()
@@ -90,12 +91,15 @@ public MarkdownPartMetadata()
/// Markdown part metadata.
public partial interface IMarkdownPartMetadata :
Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadata
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata
{
/// The content of the markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The content of the markdown part.",
SerializedName = @"content",
PossibleTypes = new [] { typeof(string) })]
@@ -104,14 +108,20 @@ public partial interface IMarkdownPartMetadata :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Input to dashboard part.",
SerializedName = @"inputs",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny[] Input { get; set; }
+ System.Collections.Generic.List Input { get; set; }
/// The source of the content of the markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The source of the content of the markdown part.",
SerializedName = @"markdownSource",
PossibleTypes = new [] { typeof(int) })]
@@ -120,6 +130,9 @@ public partial interface IMarkdownPartMetadata :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The uri of markdown content.",
SerializedName = @"markdownUri",
PossibleTypes = new [] { typeof(string) })]
@@ -128,6 +141,9 @@ public partial interface IMarkdownPartMetadata :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The subtitle of the markdown part.",
SerializedName = @"subtitle",
PossibleTypes = new [] { typeof(string) })]
@@ -136,6 +152,9 @@ public partial interface IMarkdownPartMetadata :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The title of the markdown part.",
SerializedName = @"title",
PossibleTypes = new [] { typeof(string) })]
@@ -144,16 +163,16 @@ public partial interface IMarkdownPartMetadata :
}
/// Markdown part metadata.
internal partial interface IMarkdownPartMetadataInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IDashboardPartMetadataInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal
{
/// The content of the markdown part.
string Content { get; set; }
/// The setting of the content of markdown part.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings ContentSetting { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings ContentSetting { get; set; }
/// Input to dashboard part.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IAny[] Input { get; set; }
+ System.Collections.Generic.List Input { get; set; }
/// Markdown part settings.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings Setting { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings Setting { get; set; }
/// The source of the content of the markdown part.
int? SettingMarkdownSource { get; set; }
/// The uri of markdown content.
@@ -163,7 +182,7 @@ internal partial interface IMarkdownPartMetadataInternal :
/// The title of the markdown part.
string SettingTitle { get; set; }
/// The content of markdown part.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent SettingsContent { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent SettingsContent { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadata.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.json.cs
similarity index 89%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadata.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.json.cs
index c32f2a1a089a..347855da852b 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadata.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class MarkdownPartMetadata
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadata.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadata.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadata.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadata.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new MarkdownPartMetadata(json) : null;
}
@@ -77,9 +77,9 @@ internal MarkdownPartMetadata(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.
{
return;
}
- __dashboardPartMetadata = new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.DashboardPartMetadata(json);
- {_setting = If( json?.PropertyT("settings"), out var __jsonSettings) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettings.FromJson(__jsonSettings) : Setting;}
- {_input = If( json?.PropertyT("inputs"), out var __jsonInputs) ? If( __jsonInputs as Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.IAny) (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Any.FromJson(__u) )) ))() : null : Input;}
+ __dashboardPartMetadata = new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartMetadata(json);
+ {_setting = If( json?.PropertyT("settings"), out var __jsonSettings) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettings.FromJson(__jsonSettings) : _setting;}
+ {_input = If( json?.PropertyT("inputs"), out var __jsonInputs) ? If( __jsonInputs as Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.IAny) (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Any.FromJson(__u) )) ))() : null : _input;}
AfterFromJson(json);
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettings.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.PowerShell.cs
similarity index 58%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettings.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.PowerShell.cs
index c9d46603f951..fb2f614baca1 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettings.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,29 +55,35 @@ public partial class MarkdownPartMetadataSettings
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into an instance of 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 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.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MarkdownPartMetadataSettings(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.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MarkdownPartMetadataSettings(content);
}
@@ -87,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Previe
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -105,37 +111,37 @@ internal MarkdownPartMetadataSettings(global::System.Collections.IDictionary con
// actually deserialize
if (content.Contains("Content"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentTypeConverter.ConvertFrom);
}
if (content.Contains("ContentSetting"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).ContentSetting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings) content.GetValueForProperty("ContentSetting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).ContentSetting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).ContentSetting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings) content.GetValueForProperty("ContentSetting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).ContentSetting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentSettingsTypeConverter.ConvertFrom);
}
if (content.Contains("SettingContent"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingContent = (string) content.GetValueForProperty("SettingContent",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingContent, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingContent = (string) content.GetValueForProperty("SettingContent",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingContent, global::System.Convert.ToString);
}
if (content.Contains("SettingTitle"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingTitle = (string) content.GetValueForProperty("SettingTitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingTitle, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingTitle = (string) content.GetValueForProperty("SettingTitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingTitle, global::System.Convert.ToString);
}
if (content.Contains("SettingSubtitle"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingSubtitle = (string) content.GetValueForProperty("SettingSubtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingSubtitle, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingSubtitle = (string) content.GetValueForProperty("SettingSubtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingSubtitle, global::System.Convert.ToString);
}
if (content.Contains("SettingMarkdownSource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownSource = (int?) content.GetValueForProperty("SettingMarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownSource = (int?) content.GetValueForProperty("SettingMarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("SettingMarkdownUri"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownUri = (string) content.GetValueForProperty("SettingMarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownUri, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownUri = (string) content.GetValueForProperty("SettingMarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownUri, 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.
@@ -150,31 +156,31 @@ internal MarkdownPartMetadataSettings(global::System.Management.Automation.PSObj
// actually deserialize
if (content.Contains("Content"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentTypeConverter.ConvertFrom);
}
if (content.Contains("ContentSetting"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).ContentSetting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings) content.GetValueForProperty("ContentSetting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).ContentSetting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).ContentSetting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings) content.GetValueForProperty("ContentSetting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).ContentSetting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentSettingsTypeConverter.ConvertFrom);
}
if (content.Contains("SettingContent"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingContent = (string) content.GetValueForProperty("SettingContent",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingContent, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingContent = (string) content.GetValueForProperty("SettingContent",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingContent, global::System.Convert.ToString);
}
if (content.Contains("SettingTitle"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingTitle = (string) content.GetValueForProperty("SettingTitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingTitle, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingTitle = (string) content.GetValueForProperty("SettingTitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingTitle, global::System.Convert.ToString);
}
if (content.Contains("SettingSubtitle"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingSubtitle = (string) content.GetValueForProperty("SettingSubtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingSubtitle, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingSubtitle = (string) content.GetValueForProperty("SettingSubtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingSubtitle, global::System.Convert.ToString);
}
if (content.Contains("SettingMarkdownSource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownSource = (int?) content.GetValueForProperty("SettingMarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownSource = (int?) content.GetValueForProperty("SettingMarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("SettingMarkdownUri"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownUri = (string) content.GetValueForProperty("SettingMarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownUri, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownUri = (string) content.GetValueForProperty("SettingMarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)this).SettingMarkdownUri, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -183,6 +189,18 @@ internal MarkdownPartMetadataSettings(global::System.Management.Automation.PSObj
/// a containing this model serialized to JSON text.
public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Portal.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();
+ }
}
/// Markdown part settings.
[System.ComponentModel.TypeConverter(typeof(MarkdownPartMetadataSettingsTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettings.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.TypeConverter.cs
similarity index 96%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettings.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.TypeConverter.cs
index 143a2b77610b..d524395de312 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettings.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettings.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.cs
similarity index 61%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettings.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.cs
index a583166c385a..d1b9d1985640 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettings.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// Markdown part settings.
public partial class MarkdownPartMetadataSettings :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent _content;
+ private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent _content;
/// The content of markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContent()); set => this._content = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContent()); set => this._content = value; }
/// Internal Acessors for Content
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal.Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContent()); set { {_content = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal.Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContent()); set { {_content = value;} } }
/// Internal Acessors for ContentSetting
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsInternal.ContentSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)Content).Setting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)Content).Setting = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal.ContentSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).Setting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).Setting = value; }
/// The content of the markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string SettingContent { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)Content).SettingContent; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)Content).SettingContent = value ?? null; }
+ public string SettingContent { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).SettingContent; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).SettingContent = value ?? null; }
/// The source of the content of the markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public int? SettingMarkdownSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)Content).SettingMarkdownSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)Content).SettingMarkdownSource = value ?? default(int); }
+ public int? SettingMarkdownSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).SettingMarkdownSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).SettingMarkdownSource = value ?? default(int); }
/// The uri of markdown content.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string SettingMarkdownUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)Content).SettingMarkdownUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)Content).SettingMarkdownUri = value ?? null; }
+ public string SettingMarkdownUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).SettingMarkdownUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).SettingMarkdownUri = value ?? null; }
/// The subtitle of the markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string SettingSubtitle { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)Content).SettingSubtitle; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)Content).SettingSubtitle = value ?? null; }
+ public string SettingSubtitle { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).SettingSubtitle; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).SettingSubtitle = value ?? null; }
/// The title of the markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string SettingTitle { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)Content).SettingTitle; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)Content).SettingTitle = value ?? null; }
+ public string SettingTitle { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).SettingTitle; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).SettingTitle = value ?? null; }
/// Creates an new instance.
public MarkdownPartMetadataSettings()
@@ -60,6 +60,9 @@ public partial interface IMarkdownPartMetadataSettings :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The content of the markdown part.",
SerializedName = @"content",
PossibleTypes = new [] { typeof(string) })]
@@ -68,6 +71,9 @@ public partial interface IMarkdownPartMetadataSettings :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The source of the content of the markdown part.",
SerializedName = @"markdownSource",
PossibleTypes = new [] { typeof(int) })]
@@ -76,6 +82,9 @@ public partial interface IMarkdownPartMetadataSettings :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The uri of markdown content.",
SerializedName = @"markdownUri",
PossibleTypes = new [] { typeof(string) })]
@@ -84,6 +93,9 @@ public partial interface IMarkdownPartMetadataSettings :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The subtitle of the markdown part.",
SerializedName = @"subtitle",
PossibleTypes = new [] { typeof(string) })]
@@ -92,6 +104,9 @@ public partial interface IMarkdownPartMetadataSettings :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The title of the markdown part.",
SerializedName = @"title",
PossibleTypes = new [] { typeof(string) })]
@@ -103,9 +118,9 @@ internal partial interface IMarkdownPartMetadataSettingsInternal
{
/// The content of markdown part.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent Content { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent Content { get; set; }
/// The setting of the content of markdown part.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings ContentSetting { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings ContentSetting { get; set; }
/// The content of the markdown part.
string SettingContent { get; set; }
/// The source of the content of the markdown part.
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettings.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.json.cs
similarity index 93%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettings.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.json.cs
index 50a0a0b58cfb..04419de46673 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettings.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class MarkdownPartMetadataSettings
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new MarkdownPartMetadataSettings(json) : null;
}
@@ -77,7 +77,7 @@ internal MarkdownPartMetadataSettings(Microsoft.Azure.PowerShell.Cmdlets.Portal.
{
return;
}
- {_content = If( json?.PropertyT("content"), out var __jsonContent) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContent.FromJson(__jsonContent) : Content;}
+ {_content = If( json?.PropertyT("content"), out var __jsonContent) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContent.FromJson(__jsonContent) : _content;}
AfterFromJson(json);
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContent.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContent.PowerShell.cs
similarity index 61%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContent.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContent.PowerShell.cs
index 1030cfd1912a..4a8914863359 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContent.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContent.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,29 +55,35 @@ public partial class MarkdownPartMetadataSettingsContent
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into an instance of 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 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.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MarkdownPartMetadataSettingsContent(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.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MarkdownPartMetadataSettingsContent(content);
}
@@ -89,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Previe
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -107,33 +113,33 @@ internal MarkdownPartMetadataSettingsContent(global::System.Collections.IDiction
// actually deserialize
if (content.Contains("Setting"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentSettingsTypeConverter.ConvertFrom);
}
if (content.Contains("SettingContent"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingContent = (string) content.GetValueForProperty("SettingContent",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingContent, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingContent = (string) content.GetValueForProperty("SettingContent",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingContent, global::System.Convert.ToString);
}
if (content.Contains("SettingTitle"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingTitle = (string) content.GetValueForProperty("SettingTitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingTitle, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingTitle = (string) content.GetValueForProperty("SettingTitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingTitle, global::System.Convert.ToString);
}
if (content.Contains("SettingSubtitle"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingSubtitle = (string) content.GetValueForProperty("SettingSubtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingSubtitle, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingSubtitle = (string) content.GetValueForProperty("SettingSubtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingSubtitle, global::System.Convert.ToString);
}
if (content.Contains("SettingMarkdownSource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownSource = (int?) content.GetValueForProperty("SettingMarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownSource = (int?) content.GetValueForProperty("SettingMarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("SettingMarkdownUri"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownUri = (string) content.GetValueForProperty("SettingMarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownUri, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownUri = (string) content.GetValueForProperty("SettingMarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownUri, 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.
@@ -148,27 +154,27 @@ internal MarkdownPartMetadataSettingsContent(global::System.Management.Automatio
// actually deserialize
if (content.Contains("Setting"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentSettingsTypeConverter.ConvertFrom);
}
if (content.Contains("SettingContent"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingContent = (string) content.GetValueForProperty("SettingContent",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingContent, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingContent = (string) content.GetValueForProperty("SettingContent",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingContent, global::System.Convert.ToString);
}
if (content.Contains("SettingTitle"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingTitle = (string) content.GetValueForProperty("SettingTitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingTitle, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingTitle = (string) content.GetValueForProperty("SettingTitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingTitle, global::System.Convert.ToString);
}
if (content.Contains("SettingSubtitle"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingSubtitle = (string) content.GetValueForProperty("SettingSubtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingSubtitle, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingSubtitle = (string) content.GetValueForProperty("SettingSubtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingSubtitle, global::System.Convert.ToString);
}
if (content.Contains("SettingMarkdownSource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownSource = (int?) content.GetValueForProperty("SettingMarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownSource = (int?) content.GetValueForProperty("SettingMarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("SettingMarkdownUri"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownUri = (string) content.GetValueForProperty("SettingMarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownUri, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownUri = (string) content.GetValueForProperty("SettingMarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)this).SettingMarkdownUri, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -177,6 +183,18 @@ internal MarkdownPartMetadataSettingsContent(global::System.Management.Automatio
/// a containing this model serialized to JSON text.
public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Portal.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();
+ }
}
/// The content of markdown part.
[System.ComponentModel.TypeConverter(typeof(MarkdownPartMetadataSettingsContentTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContent.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContent.TypeConverter.cs
similarity index 96%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContent.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContent.TypeConverter.cs
index 9712b5774208..43e2168116f9 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContent.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContent.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContent.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContent.cs
similarity index 66%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContent.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContent.cs
index b661eb40f0b0..8e5294fded6e 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContent.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContent.cs
@@ -3,45 +3,45 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// The content of markdown part.
public partial class MarkdownPartMetadataSettingsContent :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal
{
/// Internal Acessors for Setting
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentInternal.Setting { get => (this._setting = this._setting ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentSettings()); set { {_setting = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal.Setting { get => (this._setting = this._setting ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentSettings()); set { {_setting = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings _setting;
+ private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings _setting;
/// The setting of the content of markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings Setting { get => (this._setting = this._setting ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentSettings()); set => this._setting = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings Setting { get => (this._setting = this._setting ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentSettings()); set => this._setting = value; }
/// The content of the markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string SettingContent { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).Content; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).Content = value ?? null; }
+ public string SettingContent { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).Content; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).Content = value ?? null; }
/// The source of the content of the markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public int? SettingMarkdownSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).MarkdownSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).MarkdownSource = value ?? default(int); }
+ public int? SettingMarkdownSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).MarkdownSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).MarkdownSource = value ?? default(int); }
/// The uri of markdown content.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string SettingMarkdownUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).MarkdownUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).MarkdownUri = value ?? null; }
+ public string SettingMarkdownUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).MarkdownUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).MarkdownUri = value ?? null; }
/// The subtitle of the markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string SettingSubtitle { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).Subtitle; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).Subtitle = value ?? null; }
+ public string SettingSubtitle { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).Subtitle; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).Subtitle = value ?? null; }
/// The title of the markdown part.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string SettingTitle { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).Title; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).Title = value ?? null; }
+ public string SettingTitle { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).Title; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)Setting).Title = value ?? null; }
/// Creates an new instance.
public MarkdownPartMetadataSettingsContent()
@@ -57,6 +57,9 @@ public partial interface IMarkdownPartMetadataSettingsContent :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The content of the markdown part.",
SerializedName = @"content",
PossibleTypes = new [] { typeof(string) })]
@@ -65,6 +68,9 @@ public partial interface IMarkdownPartMetadataSettingsContent :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The source of the content of the markdown part.",
SerializedName = @"markdownSource",
PossibleTypes = new [] { typeof(int) })]
@@ -73,6 +79,9 @@ public partial interface IMarkdownPartMetadataSettingsContent :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The uri of markdown content.",
SerializedName = @"markdownUri",
PossibleTypes = new [] { typeof(string) })]
@@ -81,6 +90,9 @@ public partial interface IMarkdownPartMetadataSettingsContent :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The subtitle of the markdown part.",
SerializedName = @"subtitle",
PossibleTypes = new [] { typeof(string) })]
@@ -89,6 +101,9 @@ public partial interface IMarkdownPartMetadataSettingsContent :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The title of the markdown part.",
SerializedName = @"title",
PossibleTypes = new [] { typeof(string) })]
@@ -100,7 +115,7 @@ internal partial interface IMarkdownPartMetadataSettingsContentInternal
{
/// The setting of the content of markdown part.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings Setting { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings Setting { get; set; }
/// The content of the markdown part.
string SettingContent { get; set; }
/// The source of the content of the markdown part.
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContent.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContent.json.cs
similarity index 92%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContent.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContent.json.cs
index 4ed9af2151da..d4a454f61628 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContent.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContent.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class MarkdownPartMetadataSettingsContent
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContent FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new MarkdownPartMetadataSettingsContent(json) : null;
}
@@ -77,7 +77,7 @@ internal MarkdownPartMetadataSettingsContent(Microsoft.Azure.PowerShell.Cmdlets.
{
return;
}
- {_setting = If( json?.PropertyT("settings"), out var __jsonSettings) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.MarkdownPartMetadataSettingsContentSettings.FromJson(__jsonSettings) : Setting;}
+ {_setting = If( json?.PropertyT("settings"), out var __jsonSettings) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContentSettings.FromJson(__jsonSettings) : _setting;}
AfterFromJson(json);
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContentSettings.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContentSettings.PowerShell.cs
similarity index 64%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContentSettings.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContentSettings.PowerShell.cs
index e8b0993c80ef..91aa29bf6dd5 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContentSettings.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContentSettings.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,29 +55,37 @@ public partial class MarkdownPartMetadataSettingsContentSettings
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into an instance of 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 an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MarkdownPartMetadataSettingsContentSettings(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MarkdownPartMetadataSettingsContentSettings(content);
}
@@ -90,10 +98,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Previe
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.
@@ -108,29 +116,29 @@ internal MarkdownPartMetadataSettingsContentSettings(global::System.Collections.
// actually deserialize
if (content.Contains("Content"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Content, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Content, global::System.Convert.ToString);
}
if (content.Contains("Title"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Title = (string) content.GetValueForProperty("Title",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Title, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Title = (string) content.GetValueForProperty("Title",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Title, global::System.Convert.ToString);
}
if (content.Contains("Subtitle"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Subtitle = (string) content.GetValueForProperty("Subtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Subtitle, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Subtitle = (string) content.GetValueForProperty("Subtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Subtitle, global::System.Convert.ToString);
}
if (content.Contains("MarkdownSource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownSource = (int?) content.GetValueForProperty("MarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownSource = (int?) content.GetValueForProperty("MarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("MarkdownUri"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownUri = (string) content.GetValueForProperty("MarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownUri, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownUri = (string) content.GetValueForProperty("MarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownUri, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -145,23 +153,23 @@ internal MarkdownPartMetadataSettingsContentSettings(global::System.Management.A
// actually deserialize
if (content.Contains("Content"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Content, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Content, global::System.Convert.ToString);
}
if (content.Contains("Title"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Title = (string) content.GetValueForProperty("Title",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Title, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Title = (string) content.GetValueForProperty("Title",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Title, global::System.Convert.ToString);
}
if (content.Contains("Subtitle"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Subtitle = (string) content.GetValueForProperty("Subtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Subtitle, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Subtitle = (string) content.GetValueForProperty("Subtitle",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).Subtitle, global::System.Convert.ToString);
}
if (content.Contains("MarkdownSource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownSource = (int?) content.GetValueForProperty("MarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownSource = (int?) content.GetValueForProperty("MarkdownSource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownSource, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
}
if (content.Contains("MarkdownUri"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownUri = (string) content.GetValueForProperty("MarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownUri, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownUri = (string) content.GetValueForProperty("MarkdownUri",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal)this).MarkdownUri, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -170,6 +178,18 @@ internal MarkdownPartMetadataSettingsContentSettings(global::System.Management.A
/// a containing this model serialized to JSON text.
public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Portal.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();
+ }
}
/// The setting of the content of markdown part.
[System.ComponentModel.TypeConverter(typeof(MarkdownPartMetadataSettingsContentSettingsTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContentSettings.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContentSettings.TypeConverter.cs
similarity index 96%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContentSettings.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContentSettings.TypeConverter.cs
index eb3acb461056..a82dc284ad5e 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContentSettings.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContentSettings.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContentSettings.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContentSettings.cs
similarity index 90%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContentSettings.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContentSettings.cs
index c47935afb0bc..50498fadd3b8 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContentSettings.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContentSettings.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// The setting of the content of markdown part.
public partial class MarkdownPartMetadataSettingsContentSettings :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettingsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettingsInternal
{
/// Backing field for property.
@@ -64,6 +64,9 @@ public partial interface IMarkdownPartMetadataSettingsContentSettings :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The content of the markdown part.",
SerializedName = @"content",
PossibleTypes = new [] { typeof(string) })]
@@ -72,6 +75,9 @@ public partial interface IMarkdownPartMetadataSettingsContentSettings :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The source of the content of the markdown part.",
SerializedName = @"markdownSource",
PossibleTypes = new [] { typeof(int) })]
@@ -80,6 +86,9 @@ public partial interface IMarkdownPartMetadataSettingsContentSettings :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The uri of markdown content.",
SerializedName = @"markdownUri",
PossibleTypes = new [] { typeof(string) })]
@@ -88,6 +97,9 @@ public partial interface IMarkdownPartMetadataSettingsContentSettings :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The subtitle of the markdown part.",
SerializedName = @"subtitle",
PossibleTypes = new [] { typeof(string) })]
@@ -96,6 +108,9 @@ public partial interface IMarkdownPartMetadataSettingsContentSettings :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The title of the markdown part.",
SerializedName = @"title",
PossibleTypes = new [] { typeof(string) })]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContentSettings.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContentSettings.json.cs
similarity index 92%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContentSettings.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContentSettings.json.cs
index c80e5829711d..b32d575232ea 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api20221201Preview/MarkdownPartMetadataSettingsContentSettings.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettingsContentSettings.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.Portal.Models.Api20221201Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class MarkdownPartMetadataSettingsContentSettings
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api20221201Preview.IMarkdownPartMetadataSettingsContentSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new MarkdownPartMetadataSettingsContentSettings(json) : null;
}
@@ -77,11 +77,11 @@ internal MarkdownPartMetadataSettingsContentSettings(Microsoft.Azure.PowerShell.
{
return;
}
- {_content = If( json?.PropertyT("content"), out var __jsonContent) ? (string)__jsonContent : (string)Content;}
- {_title = If( json?.PropertyT("title"), out var __jsonTitle) ? (string)__jsonTitle : (string)Title;}
- {_subtitle = If( json?.PropertyT("subtitle"), out var __jsonSubtitle) ? (string)__jsonSubtitle : (string)Subtitle;}
- {_markdownSource = If( json?.PropertyT("markdownSource"), out var __jsonMarkdownSource) ? (int?)__jsonMarkdownSource : MarkdownSource;}
- {_markdownUri = If( json?.PropertyT("markdownUri"), out var __jsonMarkdownUri) ? (string)__jsonMarkdownUri : (string)MarkdownUri;}
+ {_content = If( json?.PropertyT("content"), out var __jsonContent) ? (string)__jsonContent : (string)_content;}
+ {_title = If( json?.PropertyT("title"), out var __jsonTitle) ? (string)__jsonTitle : (string)_title;}
+ {_subtitle = If( json?.PropertyT("subtitle"), out var __jsonSubtitle) ? (string)__jsonSubtitle : (string)_subtitle;}
+ {_markdownSource = If( json?.PropertyT("markdownSource"), out var __jsonMarkdownSource) ? (int?)__jsonMarkdownSource : _markdownSource;}
+ {_markdownUri = If( json?.PropertyT("markdownUri"), out var __jsonMarkdownUri) ? (string)__jsonMarkdownUri : (string)_markdownUri;}
AfterFromJson(json);
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/Operation.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Operation.PowerShell.cs
similarity index 61%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/Operation.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/Operation.PowerShell.cs
index 0a6270b84f86..027176061006 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/Operation.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/Operation.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.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -57,27 +57,35 @@ public partial class Operation
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into an instance of 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 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.Portal.Models.Api50.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new Operation(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new Operation(content);
}
@@ -87,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperation
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -105,45 +113,45 @@ internal Operation(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Display"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.OperationDisplayTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.OperationDisplayTypeConverter.ConvertFrom);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("IsDataAction"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
}
if (content.Contains("Origin"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.Origin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.Origin.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).Origin, global::System.Convert.ToString);
}
if (content.Contains("ActionType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ActionType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).ActionType, global::System.Convert.ToString);
}
if (content.Contains("DisplayProvider"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString);
}
if (content.Contains("DisplayResource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayResource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayResource, global::System.Convert.ToString);
}
if (content.Contains("DisplayOperation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString);
}
if (content.Contains("DisplayDescription"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -158,39 +166,39 @@ internal Operation(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Display"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.OperationDisplayTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.OperationDisplayTypeConverter.ConvertFrom);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("IsDataAction"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
}
if (content.Contains("Origin"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.Origin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.Origin.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).Origin, global::System.Convert.ToString);
}
if (content.Contains("ActionType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ActionType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).ActionType, global::System.Convert.ToString);
}
if (content.Contains("DisplayProvider"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString);
}
if (content.Contains("DisplayResource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayResource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayResource, global::System.Convert.ToString);
}
if (content.Contains("DisplayOperation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString);
}
if (content.Contains("DisplayDescription"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -199,6 +207,18 @@ internal Operation(global::System.Management.Automation.PSObject content)
/// a containing this model serialized to JSON text.
public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Portal.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();
+ }
}
/// Details of a REST API operation, returned from the Resource Provider Operations API
[System.ComponentModel.TypeConverter(typeof(OperationTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/Operation.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Operation.TypeConverter.cs
similarity index 97%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/Operation.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/Operation.TypeConverter.cs
index 15afd480a675..d33255aa7f3e 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/Operation.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/Operation.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.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api50.IOperation ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperation ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperation).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperation).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/Operation.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Operation.cs
similarity index 74%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/Operation.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/Operation.cs
index 48863074adda..33b56cac5fbd 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/Operation.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/Operation.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -11,50 +11,50 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50
/// Details of a REST API operation, returned from the Resource Provider Operations API
///
public partial class Operation :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperation,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperation,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ActionType? _actionType;
+ private string _actionType;
///
/// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
///
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ActionType? ActionType { get => this._actionType; }
+ public string ActionType { get => this._actionType; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplay _display;
+ private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay _display;
/// Localized display information for this particular operation.
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.OperationDisplay()); set => this._display = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.OperationDisplay()); set => this._display = value; }
///
/// The short, localized friendly description of the operation; suitable for tool tips and detailed views.
///
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)Display).Description; }
+ public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Description; }
///
/// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine",
/// "Restart Virtual Machine".
///
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)Display).Operation; }
+ public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Operation; }
///
/// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
///
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)Display).Provider; }
+ public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Provider; }
///
/// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
///
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)]
- public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)Display).Resource; }
+ public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Resource; }
/// Backing field for property.
private bool? _isDataAction;
@@ -67,31 +67,31 @@ public partial class Operation :
public bool? IsDataAction { get => this._isDataAction; }
/// Internal Acessors for ActionType
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ActionType? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal.ActionType { get => this._actionType; set { {_actionType = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.ActionType { get => this._actionType; set { {_actionType = value;} } }
/// Internal Acessors for Display
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.OperationDisplay()); set { {_display = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.OperationDisplay()); set { {_display = value;} } }
/// Internal Acessors for DisplayDescription
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)Display).Description = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Description = value; }
/// Internal Acessors for DisplayOperation
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)Display).Operation = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Operation = value; }
/// Internal Acessors for DisplayProvider
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)Display).Provider = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Provider = value; }
/// Internal Acessors for DisplayResource
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)Display).Resource = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Resource = value; }
/// Internal Acessors for IsDataAction
- bool? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } }
+ bool? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal.Name { get => this._name; set { {_name = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.Name { get => this._name; set { {_name = value;} } }
/// Internal Acessors for Origin
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.Origin? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } }
/// Backing field for property.
private string _name;
@@ -104,14 +104,14 @@ public partial class Operation :
public string Name { get => this._name; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.Origin? _origin;
+ private string _origin;
///
/// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is
/// "user,system"
///
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.Origin? Origin { get => this._origin; }
+ public string Origin { get => this._origin; }
/// Creates an new instance.
public Operation()
@@ -129,16 +129,23 @@ public partial interface IOperation :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Enum. Indicates the action type. ""Internal"" refers to actions that are for internal only APIs.",
SerializedName = @"actionType",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ActionType) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ActionType? ActionType { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Portal.PSArgumentCompleterAttribute("Internal")]
+ string ActionType { get; }
///
/// The short, localized friendly description of the operation; suitable for tool tips and detailed views.
///
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The short, localized friendly description of the operation; suitable for tool tips and detailed views.",
SerializedName = @"description",
PossibleTypes = new [] { typeof(string) })]
@@ -150,6 +157,9 @@ public partial interface IOperation :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The concise, localized friendly name for the operation; suitable for dropdowns. E.g. ""Create or Update Virtual Machine"", ""Restart Virtual Machine"".",
SerializedName = @"operation",
PossibleTypes = new [] { typeof(string) })]
@@ -160,6 +170,9 @@ public partial interface IOperation :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The localized friendly form of the resource provider name, e.g. ""Microsoft Monitoring Insights"" or ""Microsoft Compute"".",
SerializedName = @"provider",
PossibleTypes = new [] { typeof(string) })]
@@ -170,6 +183,9 @@ public partial interface IOperation :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The localized friendly name of the resource type related to this operation. E.g. ""Virtual Machines"" or ""Job Schedule Collections"".",
SerializedName = @"resource",
PossibleTypes = new [] { typeof(string) })]
@@ -181,6 +197,9 @@ public partial interface IOperation :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Whether the operation applies to data-plane. This is ""true"" for data-plane operations and ""false"" for ARM/control-plane operations.",
SerializedName = @"isDataAction",
PossibleTypes = new [] { typeof(bool) })]
@@ -192,6 +211,9 @@ public partial interface IOperation :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The name of the operation, as per Resource-Based Access Control (RBAC). Examples: ""Microsoft.Compute/virtualMachines/write"", ""Microsoft.Compute/virtualMachines/capture/action""",
SerializedName = @"name",
PossibleTypes = new [] { typeof(string) })]
@@ -203,10 +225,14 @@ public partial interface IOperation :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is ""user,system""",
SerializedName = @"origin",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.Origin) })]
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.Origin? Origin { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Portal.PSArgumentCompleterAttribute("user", "system", "user,system")]
+ string Origin { get; }
}
/// Details of a REST API operation, returned from the Resource Provider Operations API
@@ -216,9 +242,10 @@ internal partial interface IOperationInternal
///
/// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
///
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.ActionType? ActionType { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Portal.PSArgumentCompleterAttribute("Internal")]
+ string ActionType { get; set; }
/// Localized display information for this particular operation.
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplay Display { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay Display { get; set; }
///
/// The short, localized friendly description of the operation; suitable for tool tips and detailed views.
///
@@ -250,7 +277,8 @@ internal partial interface IOperationInternal
/// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is
/// "user,system"
///
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Support.Origin? Origin { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Portal.PSArgumentCompleterAttribute("user", "system", "user,system")]
+ string Origin { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/Operation.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Operation.json.cs
similarity index 91%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/Operation.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/Operation.json.cs
index b9a5dbcc5147..cbb2b63ed634 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/Operation.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/Operation.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.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -56,13 +56,11 @@ public partial class Operation
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperation.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperation.
///
/// a to deserialize from.
- ///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperation.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperation.
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new Operation(json) : null;
}
@@ -79,11 +77,11 @@ internal Operation(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonOb
{
return;
}
- {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.OperationDisplay.FromJson(__jsonDisplay) : Display;}
- {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;}
- {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : IsDataAction;}
- {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin;}
- {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)ActionType;}
+ {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.OperationDisplay.FromJson(__jsonDisplay) : _display;}
+ {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;}
+ {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : _isDataAction;}
+ {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)_origin;}
+ {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)_actionType;}
AfterFromJson(json);
}
@@ -107,19 +105,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode ToJson(Mi
return container;
}
AddIf( null != this._display ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) this._display.ToJson(null,serializationMode) : null, "display" ,container.Add );
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != this._isDataAction ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonBoolean((bool)this._isDataAction) : null, "isDataAction" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._origin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonString(this._origin.ToString()) : null, "origin" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._actionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonString(this._actionType.ToString()) : null, "actionType" ,container.Add );
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationDisplay.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/OperationDisplay.PowerShell.cs
similarity index 70%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationDisplay.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/OperationDisplay.PowerShell.cs
index 22c009e37b58..95497bc3ca5c 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationDisplay.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/OperationDisplay.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.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -55,27 +55,35 @@ public partial class OperationDisplay
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into an instance of 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 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.Portal.Models.Api50.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new OperationDisplay(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new OperationDisplay(content);
}
@@ -85,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationD
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -103,25 +111,25 @@ internal OperationDisplay(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Provider"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString);
}
if (content.Contains("Resource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString);
}
if (content.Contains("Operation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString);
}
if (content.Contains("Description"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Description, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Description, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -136,19 +144,19 @@ internal OperationDisplay(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Provider"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString);
}
if (content.Contains("Resource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString);
}
if (content.Contains("Operation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString);
}
if (content.Contains("Description"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal)this).Description, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)this).Description, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -157,6 +165,18 @@ internal OperationDisplay(global::System.Management.Automation.PSObject content)
/// a containing this model serialized to JSON text.
public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Portal.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();
+ }
}
/// Localized display information for this particular operation.
[System.ComponentModel.TypeConverter(typeof(OperationDisplayTypeConverter))]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationDisplay.TypeConverter.cs b/generated/Portal/Portal.Autorest/generated/api/Models/OperationDisplay.TypeConverter.cs
similarity index 97%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationDisplay.TypeConverter.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/OperationDisplay.TypeConverter.cs
index 940ad217a48e..491ba33997c0 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationDisplay.TypeConverter.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/OperationDisplay.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.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.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.Portal.Models.Api50.IOperationDisplay ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplay).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationDisplay.cs b/generated/Portal/Portal.Autorest/generated/api/Models/OperationDisplay.cs
similarity index 88%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationDisplay.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/OperationDisplay.cs
index d83ed3393eb2..ce704fb1ac03 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationDisplay.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/OperationDisplay.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.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
/// Localized display information for this particular operation.
public partial class OperationDisplay :
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplay,
- Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay,
+ Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal
{
/// Backing field for property.
@@ -23,16 +23,16 @@ public partial class OperationDisplay :
public string Description { get => this._description; }
/// Internal Acessors for Description
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal.Description { get => this._description; set { {_description = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal.Description { get => this._description; set { {_description = value;} } }
/// Internal Acessors for Operation
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } }
/// Internal Acessors for Provider
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } }
/// Internal Acessors for Resource
- string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } }
/// Backing field for property.
private string _operation;
@@ -78,6 +78,9 @@ public partial interface IOperationDisplay :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The short, localized friendly description of the operation; suitable for tool tips and detailed views.",
SerializedName = @"description",
PossibleTypes = new [] { typeof(string) })]
@@ -89,6 +92,9 @@ public partial interface IOperationDisplay :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The concise, localized friendly name for the operation; suitable for dropdowns. E.g. ""Create or Update Virtual Machine"", ""Restart Virtual Machine"".",
SerializedName = @"operation",
PossibleTypes = new [] { typeof(string) })]
@@ -99,6 +105,9 @@ public partial interface IOperationDisplay :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The localized friendly form of the resource provider name, e.g. ""Microsoft Monitoring Insights"" or ""Microsoft Compute"".",
SerializedName = @"provider",
PossibleTypes = new [] { typeof(string) })]
@@ -109,6 +118,9 @@ public partial interface IOperationDisplay :
[Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The localized friendly name of the resource type related to this operation. E.g. ""Virtual Machines"" or ""Job Schedule Collections"".",
SerializedName = @"resource",
PossibleTypes = new [] { typeof(string) })]
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationDisplay.json.cs b/generated/Portal/Portal.Autorest/generated/api/Models/OperationDisplay.json.cs
similarity index 91%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationDisplay.json.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/OperationDisplay.json.cs
index c07d9e47b233..95add2e58208 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationDisplay.json.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/OperationDisplay.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.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class OperationDisplay
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplay.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplay.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonObject json ? new OperationDisplay(json) : null;
}
@@ -77,10 +77,10 @@ internal OperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json
{
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);
}
@@ -103,19 +103,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode ToJson(Mi
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._provider)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonString(this._provider.ToString()) : null, "provider" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._resource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonString(this._resource.ToString()) : null, "resource" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._operation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonString(this._operation.ToString()) : null, "operation" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add );
}
diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationListResult.PowerShell.cs b/generated/Portal/Portal.Autorest/generated/api/Models/OperationListResult.PowerShell.cs
similarity index 72%
rename from generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationListResult.PowerShell.cs
rename to generated/Portal/Portal.Autorest/generated/api/Models/OperationListResult.PowerShell.cs
index af23839823e6..5eb8578c2afa 100644
--- a/generated/Portal/Portal.Autorest/generated/api/Models/Api50/OperationListResult.PowerShell.cs
+++ b/generated/Portal/Portal.Autorest/generated/api/Models/OperationListResult.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.Portal.Models.Api50
+namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.PowerShell;
@@ -58,27 +58,35 @@ public partial class OperationListResult
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into an instance of 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 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.Portal.Models.Api50.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new OperationListResult(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new OperationListResult(content);
}
@@ -88,10 +96,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationL
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Portal.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.
@@ -106,17 +114,17 @@ internal OperationListResult(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.OperationTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.OperationTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -131,11 +139,11 @@ internal OperationListResult(global::System.Management.Automation.PSObject conte
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.OperationTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.OperationTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.Api50.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
@@ -144,6 +152,18 @@ internal OperationListResult(global::System.Management.Automation.PSObject conte
/// a