From 0d5f44d3e8b325b9c49326acfd241f791e5bf8ee Mon Sep 17 00:00:00 2001 From: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com> Date: Wed, 1 Feb 2023 09:33:06 +0000 Subject: [PATCH] Move MobileNetwork to release-2023-02-07 --- src/MobileNetwork/Az.MobileNetwork.psd1 | 2 +- src/MobileNetwork/MobileNetwork.sln | 70 ++++---- src/MobileNetwork/README.md | 9 + ...ileNetworkPacketCoreControlPlaneVersion.md | 3 - ...-AzMobileNetworkPacketCoreControlPlane.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 3 +- src/MobileNetwork/generate-info.json | 2 +- .../PacketCoreControlPlane.PowerShell.cs | 4 +- .../Api20221101/PacketCoreControlPlane.cs | 8 +- ...ControlPlanePropertiesFormat.PowerShell.cs | 4 +- .../PacketCoreControlPlanePropertiesFormat.cs | 10 +- ...etCoreControlPlanePropertiesFormat.json.cs | 2 +- ...pertiesFormatInteropSettings.PowerShell.cs | 167 ++++++++++++++++++ ...tiesFormatInteropSettings.TypeConverter.cs | 153 ++++++++++++++++ ...rolPlanePropertiesFormatInteropSettings.cs | 39 ++++ ...pertiesFormatInteropSettings.dictionary.cs | 75 ++++++++ ...anePropertiesFormatInteropSettings.json.cs | 114 ++++++++++++ ...rkPacketCoreControlPlane_CreateExpanded.cs | 5 +- ...ileNetworkPacketCoreControlPlaneVersion.md | 3 - ...w-AzMobileNetworkPacketCoreControlPlane.md | 6 +- 20 files changed, 618 insertions(+), 64 deletions(-) create mode 100644 src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.PowerShell.cs create mode 100644 src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.TypeConverter.cs create mode 100644 src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.cs create mode 100644 src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.dictionary.cs create mode 100644 src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.json.cs diff --git a/src/MobileNetwork/Az.MobileNetwork.psd1 b/src/MobileNetwork/Az.MobileNetwork.psd1 index d0b2278bd038..446afcf58201 100644 --- a/src/MobileNetwork/Az.MobileNetwork.psd1 +++ b/src/MobileNetwork/Az.MobileNetwork.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/16/2023 +# Generated on: 2/1/2023 # @{ diff --git a/src/MobileNetwork/MobileNetwork.sln b/src/MobileNetwork/MobileNetwork.sln index f6ea196d2575..ae4208245899 100644 --- a/src/MobileNetwork/MobileNetwork.sln +++ b/src/MobileNetwork/MobileNetwork.sln @@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{D4989EC2-B82A-4F25-ACD7-E79E7994DC24}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{62D908C1-8064-4DC9-AA6E-126A95B94F62}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{D8504EBC-E79F-4F34-AAD2-7BCE56C253E1}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{2B9D775B-B534-49E0-BBC1-47ED37F3ACC4}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{6D3B016B-C72E-482B-A69D-36AEE7D86880}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{05A00469-8B3F-4E2E-8F50-B4027F969CF8}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{D7FC32EB-D7BE-443B-AEF8-25656FBAF488}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{50E7F83A-9EE2-4748-BDC3-8505983FCDEB}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{45AEA965-C608-4708-A66A-FB7B4A428A2C}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{A02BCB94-999D-4E01-8212-E560777D7EF0}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{BFB4D89A-AD75-4B00-9328-B262985912C2}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{EE2686BF-993B-4CF3-BD65-501429BDBD16}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MobileNetwork", "Az.MobileNetwork.csproj", "{13D7FE87-F30F-45AB-8869-524A0CB817A8}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MobileNetwork", "Az.MobileNetwork.csproj", "{B5E9C48E-04DE-4FAA-8284-78364D277868}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -26,33 +26,33 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D4989EC2-B82A-4F25-ACD7-E79E7994DC24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D4989EC2-B82A-4F25-ACD7-E79E7994DC24}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D4989EC2-B82A-4F25-ACD7-E79E7994DC24}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D4989EC2-B82A-4F25-ACD7-E79E7994DC24}.Release|Any CPU.Build.0 = Release|Any CPU - {D8504EBC-E79F-4F34-AAD2-7BCE56C253E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D8504EBC-E79F-4F34-AAD2-7BCE56C253E1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D8504EBC-E79F-4F34-AAD2-7BCE56C253E1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D8504EBC-E79F-4F34-AAD2-7BCE56C253E1}.Release|Any CPU.Build.0 = Release|Any CPU - {6D3B016B-C72E-482B-A69D-36AEE7D86880}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6D3B016B-C72E-482B-A69D-36AEE7D86880}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6D3B016B-C72E-482B-A69D-36AEE7D86880}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6D3B016B-C72E-482B-A69D-36AEE7D86880}.Release|Any CPU.Build.0 = Release|Any CPU - {D7FC32EB-D7BE-443B-AEF8-25656FBAF488}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D7FC32EB-D7BE-443B-AEF8-25656FBAF488}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D7FC32EB-D7BE-443B-AEF8-25656FBAF488}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D7FC32EB-D7BE-443B-AEF8-25656FBAF488}.Release|Any CPU.Build.0 = Release|Any CPU - {45AEA965-C608-4708-A66A-FB7B4A428A2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {45AEA965-C608-4708-A66A-FB7B4A428A2C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {45AEA965-C608-4708-A66A-FB7B4A428A2C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {45AEA965-C608-4708-A66A-FB7B4A428A2C}.Release|Any CPU.Build.0 = Release|Any CPU - {BFB4D89A-AD75-4B00-9328-B262985912C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BFB4D89A-AD75-4B00-9328-B262985912C2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BFB4D89A-AD75-4B00-9328-B262985912C2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BFB4D89A-AD75-4B00-9328-B262985912C2}.Release|Any CPU.Build.0 = Release|Any CPU - {13D7FE87-F30F-45AB-8869-524A0CB817A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {13D7FE87-F30F-45AB-8869-524A0CB817A8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {13D7FE87-F30F-45AB-8869-524A0CB817A8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {13D7FE87-F30F-45AB-8869-524A0CB817A8}.Release|Any CPU.Build.0 = Release|Any CPU + {62D908C1-8064-4DC9-AA6E-126A95B94F62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {62D908C1-8064-4DC9-AA6E-126A95B94F62}.Debug|Any CPU.Build.0 = Debug|Any CPU + {62D908C1-8064-4DC9-AA6E-126A95B94F62}.Release|Any CPU.ActiveCfg = Release|Any CPU + {62D908C1-8064-4DC9-AA6E-126A95B94F62}.Release|Any CPU.Build.0 = Release|Any CPU + {2B9D775B-B534-49E0-BBC1-47ED37F3ACC4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2B9D775B-B534-49E0-BBC1-47ED37F3ACC4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2B9D775B-B534-49E0-BBC1-47ED37F3ACC4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2B9D775B-B534-49E0-BBC1-47ED37F3ACC4}.Release|Any CPU.Build.0 = Release|Any CPU + {05A00469-8B3F-4E2E-8F50-B4027F969CF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {05A00469-8B3F-4E2E-8F50-B4027F969CF8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {05A00469-8B3F-4E2E-8F50-B4027F969CF8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {05A00469-8B3F-4E2E-8F50-B4027F969CF8}.Release|Any CPU.Build.0 = Release|Any CPU + {50E7F83A-9EE2-4748-BDC3-8505983FCDEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {50E7F83A-9EE2-4748-BDC3-8505983FCDEB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {50E7F83A-9EE2-4748-BDC3-8505983FCDEB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {50E7F83A-9EE2-4748-BDC3-8505983FCDEB}.Release|Any CPU.Build.0 = Release|Any CPU + {A02BCB94-999D-4E01-8212-E560777D7EF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A02BCB94-999D-4E01-8212-E560777D7EF0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A02BCB94-999D-4E01-8212-E560777D7EF0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A02BCB94-999D-4E01-8212-E560777D7EF0}.Release|Any CPU.Build.0 = Release|Any CPU + {EE2686BF-993B-4CF3-BD65-501429BDBD16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EE2686BF-993B-4CF3-BD65-501429BDBD16}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EE2686BF-993B-4CF3-BD65-501429BDBD16}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EE2686BF-993B-4CF3-BD65-501429BDBD16}.Release|Any CPU.Build.0 = Release|Any CPU + {B5E9C48E-04DE-4FAA-8284-78364D277868}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B5E9C48E-04DE-4FAA-8284-78364D277868}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B5E9C48E-04DE-4FAA-8284-78364D277868}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B5E9C48E-04DE-4FAA-8284-78364D277868}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/MobileNetwork/README.md b/src/MobileNetwork/README.md index 13053954b576..dd135242f023 100644 --- a/src/MobileNetwork/README.md +++ b/src/MobileNetwork/README.md @@ -58,6 +58,15 @@ identity-correction-for-post: true nested-object-to-string: true directive: + - from: swagger-document + where: $.definitions.PacketCoreControlPlanePropertiesFormat.properties.interopSettings + transform: >- + return { + "type": "object", + "additionalProperties": true, + "description": "Settings to allow interoperability with third party components e.g. RANs and UEs." + } + - from: swagger-document where: $.definitions transform: delete $.CoreNetworkTypeRm diff --git a/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md b/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md index 049c933d4a3b..726140dfb7d7 100644 --- a/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md +++ b/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md @@ -7,10 +7,7 @@ Get-AzMobileNetworkPacketCoreControlPlaneVersion Name ---- PMN-4-9-0 -...... pmn-2301-0-1 -...... -... ``` List information about the specified packet core control plane version by sub. diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreControlPlane.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreControlPlane.ps1 index da2a42bd4a05..efb3347ec4ca 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreControlPlane.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreControlPlane.ps1 @@ -178,7 +178,8 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings]))] + [System.Collections.Hashtable] # Settings to allow interoperability with third party components e.g. # RANs and UEs. ${InteropSetting}, diff --git a/src/MobileNetwork/exports/ProxyCmdletDefinitions.ps1 b/src/MobileNetwork/exports/ProxyCmdletDefinitions.ps1 index 771abc3cee1c..b79e082c3a86 100644 --- a/src/MobileNetwork/exports/ProxyCmdletDefinitions.ps1 +++ b/src/MobileNetwork/exports/ProxyCmdletDefinitions.ps1 @@ -3141,7 +3141,8 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings]))] + [System.Collections.Hashtable] # Settings to allow interoperability with third party components e.g. # RANs and UEs. ${InteropSetting}, diff --git a/src/MobileNetwork/generate-info.json b/src/MobileNetwork/generate-info.json index 4c1aa440fd0f..20e7c72afb14 100644 --- a/src/MobileNetwork/generate-info.json +++ b/src/MobileNetwork/generate-info.json @@ -1,5 +1,5 @@ { - "swagger_commit": "c2a1aaa0440d1aec45830646c4dfc27552b0b1e3", + "swagger_commit": "dea4d453ca250eae677d69751d909df00d6b6b05", "node": "v14.15.5", "autorest": "`-- (empty)", "autorest_core": "3.9.4", diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlane.PowerShell.cs b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlane.PowerShell.cs index 23c0b4a78172..94416aab96d5 100644 --- a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlane.PowerShell.cs +++ b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlane.PowerShell.cs @@ -213,7 +213,7 @@ internal PacketCoreControlPlane(global::System.Collections.IDictionary content) } if (content.Contains("InteropSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneInternal)this).InteropSetting = (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny) content.GetValueForProperty("InteropSetting",((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneInternal)this).InteropSetting, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneInternal)this).InteropSetting = (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings) content.GetValueForProperty("InteropSetting",((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneInternal)this).InteropSetting, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlanePropertiesFormatInteropSettingsTypeConverter.ConvertFrom); } if (content.Contains("InstallationState")) { @@ -442,7 +442,7 @@ internal PacketCoreControlPlane(global::System.Management.Automation.PSObject co } if (content.Contains("InteropSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneInternal)this).InteropSetting = (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny) content.GetValueForProperty("InteropSetting",((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneInternal)this).InteropSetting, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneInternal)this).InteropSetting = (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings) content.GetValueForProperty("InteropSetting",((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneInternal)this).InteropSetting, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlanePropertiesFormatInteropSettingsTypeConverter.ConvertFrom); } if (content.Contains("InstallationState")) { diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlane.cs b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlane.cs index e51d6cc8008e..2f1c193eae9a 100644 --- a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlane.cs +++ b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlane.cs @@ -128,7 +128,7 @@ public partial class PacketCoreControlPlane : /// [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Origin(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny InteropSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInternal)Property).InteropSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInternal)Property).InteropSetting = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings InteropSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInternal)Property).InteropSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInternal)Property).InteropSetting = value ?? null /* model class */; } /// How to authenticate users who access local diagnostics APIs. [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Origin(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.PropertyOrigin.Inlined)] @@ -514,8 +514,8 @@ public partial interface IPacketCoreControlPlane : ReadOnly = false, Description = @"Settings to allow interoperability with third party components e.g. RANs and UEs.", SerializedName = @"interopSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny) })] - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny InteropSetting { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings) })] + Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings InteropSetting { get; set; } /// How to authenticate users who access local diagnostics APIs. [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( Required = true, @@ -691,7 +691,7 @@ internal partial interface IPacketCoreControlPlaneInternal : /// /// Settings to allow interoperability with third party components e.g. RANs and UEs. /// - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny InteropSetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings InteropSetting { get; set; } /// How to authenticate users who access local diagnostics APIs. Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.AuthenticationType LocalDiagnosticAccessAuthenticationType { get; set; } /// The HTTPS server TLS certificate used to secure local access to diagnostics. diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormat.PowerShell.cs b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormat.PowerShell.cs index 25b63eac47dc..78120ccf7ff7 100644 --- a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormat.PowerShell.cs +++ b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormat.PowerShell.cs @@ -160,7 +160,7 @@ internal PacketCoreControlPlanePropertiesFormat(global::System.Collections.IDict } if (content.Contains("InteropSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInternal)this).InteropSetting = (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny) content.GetValueForProperty("InteropSetting",((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInternal)this).InteropSetting, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInternal)this).InteropSetting = (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings) content.GetValueForProperty("InteropSetting",((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInternal)this).InteropSetting, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlanePropertiesFormatInteropSettingsTypeConverter.ConvertFrom); } if (content.Contains("InstallationState")) { @@ -317,7 +317,7 @@ internal PacketCoreControlPlanePropertiesFormat(global::System.Management.Automa } if (content.Contains("InteropSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInternal)this).InteropSetting = (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny) content.GetValueForProperty("InteropSetting",((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInternal)this).InteropSetting, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInternal)this).InteropSetting = (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings) content.GetValueForProperty("InteropSetting",((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInternal)this).InteropSetting, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlanePropertiesFormatInteropSettingsTypeConverter.ConvertFrom); } if (content.Contains("InstallationState")) { diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormat.cs b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormat.cs index 63f194a02b47..578e248e92c6 100644 --- a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormat.cs +++ b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormat.cs @@ -82,13 +82,13 @@ public partial class PacketCoreControlPlanePropertiesFormat : public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.InstallationState? InstallationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IInstallationInternal)Installation).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IInstallationInternal)Installation).State = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.InstallationState)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny _interopSetting; + private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings _interopSetting; /// /// Settings to allow interoperability with third party components e.g. RANs and UEs. /// [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Origin(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny InteropSetting { get => (this._interopSetting = this._interopSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Any()); set => this._interopSetting = value; } + public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings InteropSetting { get => (this._interopSetting = this._interopSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlanePropertiesFormatInteropSettings()); set => this._interopSetting = value; } /// How to authenticate users who access local diagnostics APIs. [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Origin(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.PropertyOrigin.Inlined)] @@ -345,8 +345,8 @@ public partial interface IPacketCoreControlPlanePropertiesFormat : ReadOnly = false, Description = @"Settings to allow interoperability with third party components e.g. RANs and UEs.", SerializedName = @"interopSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny) })] - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny InteropSetting { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings) })] + Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings InteropSetting { get; set; } /// How to authenticate users who access local diagnostics APIs. [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( Required = true, @@ -502,7 +502,7 @@ internal partial interface IPacketCoreControlPlanePropertiesFormatInternal /// /// Settings to allow interoperability with third party components e.g. RANs and UEs. /// - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny InteropSetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings InteropSetting { get; set; } /// How to authenticate users who access local diagnostics APIs. Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.AuthenticationType LocalDiagnosticAccessAuthenticationType { get; set; } /// The HTTPS server TLS certificate used to secure local access to diagnostics. diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormat.json.cs b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormat.json.cs index 6d9566239978..44cdc3a9d8d8 100644 --- a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormat.json.cs +++ b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormat.json.cs @@ -88,7 +88,7 @@ internal PacketCoreControlPlanePropertiesFormat(Microsoft.Azure.PowerShell.Cmdle {_rollbackVersion = If( json?.PropertyT("rollbackVersion"), out var __jsonRollbackVersion) ? (string)__jsonRollbackVersion : (string)RollbackVersion;} {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? (string)__jsonSku : (string)Sku;} {_ueMtu = If( json?.PropertyT("ueMtu"), out var __jsonUeMtu) ? (int?)__jsonUeMtu : UeMtu;} - {_interopSetting = If( json?.PropertyT("interopSettings"), out var __jsonInteropSettings) ? Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Any.FromJson(__jsonInteropSettings) : InteropSetting;} + {_interopSetting = If( json?.PropertyT("interopSettings"), out var __jsonInteropSettings) ? Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlanePropertiesFormatInteropSettings.FromJson(__jsonInteropSettings) : InteropSetting;} AfterFromJson(json); } diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.PowerShell.cs b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.PowerShell.cs new file mode 100644 index 000000000000..ab06ee1e2677 --- /dev/null +++ b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.PowerShell.cs @@ -0,0 +1,167 @@ +// 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.MobileNetwork.Models.Api20221101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell; + + /// + /// Settings to allow interoperability with third party components e.g. RANs and UEs. + /// + [System.ComponentModel.TypeConverter(typeof(PacketCoreControlPlanePropertiesFormatInteropSettingsTypeConverter))] + public partial class PacketCoreControlPlanePropertiesFormatInteropSettings + { + + /// + /// 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 an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PacketCoreControlPlanePropertiesFormatInteropSettings(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.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PacketCoreControlPlanePropertiesFormatInteropSettings(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.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PacketCoreControlPlanePropertiesFormatInteropSettings(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PacketCoreControlPlanePropertiesFormatInteropSettings(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.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(); + } + } + /// Settings to allow interoperability with third party components e.g. RANs and UEs. + [System.ComponentModel.TypeConverter(typeof(PacketCoreControlPlanePropertiesFormatInteropSettingsTypeConverter))] + public partial interface IPacketCoreControlPlanePropertiesFormatInteropSettings + + { + + } +} \ No newline at end of file diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.TypeConverter.cs b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.TypeConverter.cs new file mode 100644 index 000000000000..f2fe25c395cb --- /dev/null +++ b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.TypeConverter.cs @@ -0,0 +1,153 @@ +// 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.MobileNetwork.Models.Api20221101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class PacketCoreControlPlanePropertiesFormatInteropSettingsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return PacketCoreControlPlanePropertiesFormatInteropSettings.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return PacketCoreControlPlanePropertiesFormatInteropSettings.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return PacketCoreControlPlanePropertiesFormatInteropSettings.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.cs b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.cs new file mode 100644 index 000000000000..0df9c5f9469e --- /dev/null +++ b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Extensions; + + /// + /// Settings to allow interoperability with third party components e.g. RANs and UEs. + /// + public partial class PacketCoreControlPlanePropertiesFormatInteropSettings : + Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings, + Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettingsInternal + { + + /// + /// Creates an new instance. + /// + public PacketCoreControlPlanePropertiesFormatInteropSettings() + { + + } + } + /// Settings to allow interoperability with third party components e.g. RANs and UEs. + public partial interface IPacketCoreControlPlanePropertiesFormatInteropSettings : + Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IAssociativeArray + { + + } + /// Settings to allow interoperability with third party components e.g. RANs and UEs. + internal partial interface IPacketCoreControlPlanePropertiesFormatInteropSettingsInternal + + { + + } +} \ No newline at end of file diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.dictionary.cs b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.dictionary.cs new file mode 100644 index 000000000000..08ff12cb1ab7 --- /dev/null +++ b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.dictionary.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Extensions; + + public partial class PacketCoreControlPlanePropertiesFormatInteropSettings : + Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public global::System.Object this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, global::System.Object value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out global::System.Object value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlanePropertiesFormatInteropSettings source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.json.cs b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.json.cs new file mode 100644 index 000000000000..477123d64faa --- /dev/null +++ b/src/MobileNetwork/generated/api/Models/Api20221101/PacketCoreControlPlanePropertiesFormatInteropSettings.json.cs @@ -0,0 +1,114 @@ +// 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.MobileNetwork.Models.Api20221101 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Extensions; + + /// + /// Settings to allow interoperability with third party components e.g. RANs and UEs. + /// + public partial class PacketCoreControlPlanePropertiesFormatInteropSettings + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json ? new PacketCoreControlPlanePropertiesFormatInteropSettings(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject instance to deserialize from. + /// + internal PacketCoreControlPlanePropertiesFormatInteropSettings(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IAssociativeArray)this).AdditionalProperties, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.JsonSerializable.DeserializeDictionary(()=>new global::System.Collections.Generic.Dictionary()),exclusions ); + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkPacketCoreControlPlane_CreateExpanded.cs b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkPacketCoreControlPlane_CreateExpanded.cs index 5c76d7d37110..2be9628252a3 100644 --- a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkPacketCoreControlPlane_CreateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkPacketCoreControlPlane_CreateExpanded.cs @@ -218,6 +218,7 @@ public partial class NewAzMobileNetworkPacketCoreControlPlane_CreateExpanded : g /// /// Settings to allow interoperability with third party components e.g. RANs and UEs. /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ExportAs(typeof(global::System.Collections.Hashtable))] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Settings to allow interoperability with third party components e.g. RANs and UEs.")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( @@ -225,8 +226,8 @@ public partial class NewAzMobileNetworkPacketCoreControlPlane_CreateExpanded : g ReadOnly = false, Description = @"Settings to allow interoperability with third party components e.g. RANs and UEs.", SerializedName = @"interopSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny) })] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny InteropSetting { get => _parametersBody.InteropSetting ?? null /* object */; set => _parametersBody.InteropSetting = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings) })] + public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings InteropSetting { get => _parametersBody.InteropSetting ?? null /* object */; set => _parametersBody.InteropSetting = value; } /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } diff --git a/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md b/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md index 3e01f216ea9e..d65687b7fe12 100644 --- a/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md +++ b/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md @@ -43,10 +43,7 @@ Get-AzMobileNetworkPacketCoreControlPlaneVersion Name ---- PMN-4-9-0 -...... pmn-2301-0-1 -...... -... ``` List information about the specified packet core control plane version by sub. diff --git a/src/MobileNetwork/help/New-AzMobileNetworkPacketCoreControlPlane.md b/src/MobileNetwork/help/New-AzMobileNetworkPacketCoreControlPlane.md index aae42bb5bfcb..94bb6ac830e9 100644 --- a/src/MobileNetwork/help/New-AzMobileNetworkPacketCoreControlPlane.md +++ b/src/MobileNetwork/help/New-AzMobileNetworkPacketCoreControlPlane.md @@ -21,8 +21,8 @@ New-AzMobileNetworkPacketCoreControlPlane -Name -ResourceGroupName ] [-ControlPlaneAccessInterfaceName ] [-CoreNetworkTechnology ] [-CustomLocationId ] [-HttpsServerCertificateUrl ] [-IdentityType ] [-IdentityUserAssignedIdentity ] - [-InteropSetting ] [-Tag ] [-UeMtu ] [-Version ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-InteropSetting ] [-Tag ] [-UeMtu ] [-Version ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -266,7 +266,7 @@ Settings to allow interoperability with third party components e.g. RANs and UEs. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny +Type: System.Collections.Hashtable Parameter Sets: (All) Aliases: